Skip to content
pubscout

regexpattern

2.6.0, released 3 years ago by an unverified publisher

Flutter collection of regex patterns for string validation.

WASM-ready
$ flutter pub add regexpattern
Source repository

What it does

Provides a comprehensive set of pre-compiled regular expression patterns and string extensions for validating common string inputs like emails, URLs, passwords, usernames, and cryptographic hashes in Flutter projects.

AI-written summary of version 2.6.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to validate standard formats like email, phone numbers, or URLs in a form.
  • You want to enforce password strength rules using pre-defined regular expressions.

Skip it when

  • You require complex, highly customized business logic validation that cannot be solved with standard regex patterns.
  • You are working in a non-Dart environment.

Strengths

  • Includes a wide variety of pre-defined regex patterns (emails, crypto addresses, file types, passwords).
  • Offers convenient String extensions for quick matching.
  • Easy to integrate with minimal setup.

Weaknesses

  • Relies entirely on static regex strings which may need updates for edge-case formats.
  • Limited documentation beyond the list of provided pattern names.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
String text = 'https://google.com';
bool isUrl = text.isUrl();

Alternatives

Packages that do the same job and could replace regexpattern.