GitHub リポジトリfzserver/FzRegex

FzRegex

Frazile Regex はバリデータライブラリです。

FzRegex のプロジェクト画像
スター
17
フォーク
5
最終プッシュ(UTC)
2025/07/10
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

FzRegex

A comprehensive regex validation library for Dart/Flutter developers. Validate formats such as:

  • Phone Numbers
  • Names
  • Postal Codes
  • Emails
  • URLs
  • IP Addresses
  • Dates & Times
  • Passwords (Strong & Medium)
  • Credit/Debit Cards
  • Crypto Validators updated
  • And many more!

Pub Version
GitHub Repo


🚀 Installation

Add the package to the dependencies: section of your pubspec.yaml:

dependencies:
  fzregex: <latest_version>

Then Run

flutter pub get

🌟 Features

FzRegex offers validation for a wide range of data formats, including:

📝 User Input
  • Username
  • Name
  • Only Numbers (Numeric input without whitespace or symbols)
  • Passwords (Strong & Medium)
🖼️ Files & Media
  • Images: PNG, JPEG, SVG
  • Audio: MP3, WAV, etc.
  • Video: MP4, AVI, etc.
  • Text Files (TXT)
  • Documents: Word (DOC), Excel (XLS), PowerPoint (PPT), PDF
  • APK Files
🔍 Identifiers
  • Social Security Numbers (SSN)
  • International Standard Book Numbers (ISBN-10 & ISBN-13)
  • Passport Numbers
  • IP Addresses: IPv4, IPv6
🌐 Web
  • Emails
  • URLs
  • GitHub Repository Names
  • HTML Tags
💰 Financial
  • Credit/Debit Card Numbers
  • Currency Formats
  • Hash Formats: MD5, SHA1, SHA256
  • Crypto Currencies
🧩 Miscellaneous
  • Postal Codes
  • Date/Time Validation
  • Binary Numbers

For a detailed list of patterns, visit the patterns file.

🛠️ Usage

Here’s how you can use FzRegex in your Dart/Flutter project:

import 'package:fzregex/fzregex.dart';
import 'package:fzregex/utils/pattern.dart';

void main() {
  // Validate a username
  bool isValidUsername = FzRegex.hasMatch('Frazile', FzPattern.username);
  
  // Validate a phone number
  bool isValidPhone = FzRegex.hasMatch('+91 1234567890', FzPattern.phone);

  // Validate an email
  bool isValidEmail = FzRegex.hasMatch('frazilex@frazile.app', FzPattern.email);

  // Validate a URL
  bool isValidURL = FzRegex.hasMatch('https://frazile.com/', FzPattern.url);

  // Validate currency format
  bool isValidCurrency = FzRegex.hasMatch('\$ 100,000', FzPattern.currency);

  print(isValidUsername); // true
  print(isValidPhone);    // true
}

❤️ Support the Project

If you find this project helpful, consider supporting its development:

Crypto Donations
• Bitcoin (BTC): bc1qfz3nxgnq05zhdfnt7zuzzx9mhmejrm8sv2sfq8
• Ethereum (ETH): 0x27dC4A17C23A22520A395457202CaEae9bFCDAC0
• Tron (TRX): TRrgqPQdFMJ9Lmik2ACKSM3CnnYDDAeYJv
• BNB Smart Chain (BSC): 0x27dC4A17C23A22520A395457202CaEae9bFCDAC0
• Solana (SOL): 98MhEWJ6XQf34cg3vcmh8Ggm7u51bmUvWNKzUQr9MmEt
• Polygon (POL): 0x27dC4A17C23A22520A395457202CaEae9bFCDAC0
• NEAR Token (NEAR): frazile.near

🧑‍💻 Developed By

Parth Aggarwal CEO & Developer at Frazile Inc.

🧑‍💻 Developed By

Parth Aggarwal
CEO & Developer at Frazile Inc.
GitHub Profile Follow me on Linkedin Profile

Frazile Inc. GitHub avatar
GitHub 作者

Frazile Inc. ↗

Flutter, Dart, Swift, TypeScript, Json, MySQL, NodeJS, iOS Developer, Android Developer, Google, Apple, Xcode, Java, Kotlin

Frazile Inc.India公式サイト ↗
言語Dart

カテゴリー

使用している依存関係

依存関係一覧 3 件

  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}
  • lints開発用^6.0.0

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗