Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fzserver/fzregex
Frazile Regex is a validator library.
https://github.com/fzserver/fzregex
android beer coffee dart dart-library dart-package dartlang flutter frazile-regex fz-regex ios package web
Last synced: 1 day ago
JSON representation
Frazile Regex is a validator library.
- Host: GitHub
- URL: https://github.com/fzserver/fzregex
- Owner: fzserver
- License: mit
- Created: 2020-05-11T20:02:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-27T17:00:32.000Z (about 1 month ago)
- Last Synced: 2025-01-29T12:15:31.487Z (1 day ago)
- Topics: android, beer, coffee, dart, dart-library, dart-package, dartlang, flutter, frazile-regex, fz-regex, ios, package, web
- Language: Dart
- Size: 31.3 KB
- Stars: 17
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- And many more![![Pub Version](https://img.shields.io/pub/v/fzregex.svg)](https://pub.dev/packages/fzregex)
[![GitHub Repo](https://img.shields.io/github/stars/FrazileDevelopers/FzRegex.svg?style=social)](https://github.com/FrazileDevelopers/FzRegex)---
## π Installation
Add the package to the `dependencies:` section of your `pubspec.yaml`:
```yaml
dependencies:
fzregex:
```Then Run
```sh
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### 𧩠Miscellaneous
- Postal Codes
- Date/Time Validation
- Binary NumbersFor a detailed list of patterns, visit the [patterns file](https://github.com/FrazileDevelopers/FzRegex/blob/main/lib/utils/pattern.dart).
## π οΈ Usage
Hereβs how you can use FzRegex in your Dart/Flutter project:
```dart
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('[email protected]', 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](https://github.com/FrazileDevelopers)