regexpattern
2.6.0, released 3 years ago by an unverified publisher
Flutter collection of regex patterns for string validation.
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.
- validators
String validation and sanitization library for Dart
50Compare - rich_text_controller
An extended text editing controller supporting different inline styles for custom regex patterns.
58Compare - filter_list
Utility to search and filter single or multiple items from a dynamic list.
50Compare - form_bloc
Easy form state management and validation using the BLoC pattern.
48Compare