Skip to content
pubscout

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.

WASM-ready
$ flutter pub add fzregex
Source repository

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.