regex_toolkit 1.0.0 regex_toolkit: ^1.0.0 copied to clipboard
A human friendly collection of commonly used regular expressions
Regex Toolkit #
A collection of commonly used regular expressions
Usage #
A simple usage example:
import 'package:regex_toolkit/regex_toolkit.dart';
void main() {
var email = 'john@doe.com';
if (RegexToolkit.emailId.hasMatch(email)) {
print('Valid Email');
} else {
print('Invalid Email');
}
}
Available Regex #
-
Simple
- Alphanumeric (+ with spaces)
- Alphabet (+ case sensitive)
- Digits
- Decimals (+ signed)
-
User
- Username
- Password
-
Internet
- URL
- IPv4
- IPv6
-
Date
-
Identity
- SSN
- International Phone Number
- Passport
- Credit Card
Authors #
- Sahil Bondre - godcrampy
This project is licensed under the MIT License - see the LICENSE file for details