A collection of commonly used regular expressions
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');
}
}
-
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
- Sahil Bondre - godcrampy
This project is licensed under the MIT License - see the LICENSE file for details