fzregex
2.2.0, released a year ago by frazile.com
A regex validation library for common user input, identifiers, media formats, and financial data.
What it does
FzRegex provides a collection of regular expression patterns and validation helper methods for Dart and Flutter applications. It covers formats like emails, phone numbers, postal codes, passwords, URLs, IP addresses, currencies, and various identification numbers.
AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to quickly validate standard text inputs such as emails, phone numbers, or postal codes using regular expressions.
- You want pre-tested regex patterns for financial formats, crypto currencies, or file extensions.
Skip it when
- You need complex form state management or automated error messaging tied to form controllers.
- You require validation that depends on asynchronous checks or external services.
Strengths
- Comprehensive collection of ready-to-use regex patterns for various domains.
- Simple static utility methods for validating inputs instantly.
Weaknesses
- Limited to pure regex matching without advanced context-aware validation.
- No built-in UI form widgets or error-state management out of the box.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:fzregex/fzregex.dart';
import 'package:fzregex/utils/pattern.dart';
void main() {
bool isValidEmail = FzRegex.hasMatch('frazilex@frazile.app', FzPattern.email);
print(isValidEmail);
}Alternatives
Packages that do the same job and could replace fzregex.
- best_form_validator
Zero-initialization form field validators for Flutter with 52 countries and 25 languages.
72Compare - flutter_multi_formatter
Input formatters for international phone numbers, credit/debit cards, currencies, and custom masks.
75Compare - zod_validation
Data validation library for Flutter forms and Shelf backend requests.
44Compare - email_validator_flutter
A Dart and Flutter package for validating email addresses using regular expressions.
50Compare