RegexPatterns class

Regular expression patterns for various validation use cases

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

aadhaar RegExp
Aadhaar Number - India (12 digits)
final
alphanumeric RegExp
Alphanumeric only
final
alphanumericWithSpaces RegExp
Alphanumeric with spaces
final
base64 RegExp
Base64 string
final
creditCard RegExp
Credit card number (basic validation)
final
currency RegExp
Currency (with optional cents)
final
cvv RegExp
CVV (3-4 digits)
final
dateDDMMYYYY RegExp
Date (DD/MM/YYYY)
final
dateMMDDYYYY RegExp
Date (MM/DD/YYYY)
final
dateTimeISO RegExp
DateTime ISO 8601
final
dateYYYYMMDD RegExp
Date (YYYY-MM-DD)
final
decimal RegExp
Decimal number
final
digitsOnly RegExp
Digits only
final
documentFile RegExp
Document file extension
final
domain RegExp
Domain name
final
email RegExp
Email validation (RFC 5322 compliant)
final
emailSimple RegExp
Simple email validation
final
facebookUrl RegExp
Facebook URL
final
fileExtension RegExp
File extension
final
firstName RegExp
First/Last name (2-50 characters, letters only)
final
fullName RegExp
Full name (including middle name)
final
hasDigit RegExp
Contains at least one digit
final
hashtag RegExp
Hashtag
final
hasLowercase RegExp
Contains at least one lowercase letter
final
hasSpecialChar RegExp
Contains at least one special character
final
hasUppercase RegExp
Contains at least one uppercase letter
final
hexColor RegExp
Hexadecimal color code
final
htmlTag RegExp
HTML tag
final
imageFile RegExp
Image file extension
final
instagramHandle RegExp
Instagram handle
final
integer RegExp
Integer (positive and negative)
final
ipv4 RegExp
IP Address (IPv4)
final
ipv6 RegExp
IP Address (IPv6)
final
isbn RegExp
ISBN (10 or 13 digits)
final
latitude RegExp
Latitude
final
lettersOnly RegExp
Letters only
final
linkedinUrl RegExp
LinkedIn URL
final
longitude RegExp
Longitude
final
macAddress RegExp
MAC address
final
markdownImage RegExp
Markdown image syntax
final
Markdown link syntax
final
mention RegExp
Mention (@username)
final
name RegExp
Name validation (letters, spaces, hyphens, apostrophes)
final
negativeInteger RegExp
Negative integer
final
noSpecialChars RegExp
No special characters
final
noWhitespace RegExp
No whitespace
final
panCard RegExp
PAN Card - India
final
passport RegExp
Passport number (generic)
final
passwordMedium RegExp
Medium password (min 6 chars, 1 letter, 1 number)
final
passwordMin8 RegExp
Password with minimum length
final
passwordStrong RegExp
Strong password (min 8 chars, 1 uppercase, 1 lowercase, 1 number, 1 special char)
final
percentage RegExp
Percentage (0-100)
final
phoneGeneric RegExp
Generic phone number (10-15 digits)
final
phoneIndia RegExp
Indian phone number
final
phoneInternational RegExp
International phone number (E.164 format)
final
phoneUS RegExp
US phone number
final
phoneWithCountryCode RegExp
Phone with country code
final
positiveDecimal RegExp
Positive decimal
final
positiveInteger RegExp
Positive integer
final
postalCodeCanada RegExp
Postal code - Canada
final
postalCodeIndia RegExp
Postal code - India (6 digits)
final
postcodeUK RegExp
UK postcode
final
ssn RegExp
Social Security Number (SSN) - US
final
time12 RegExp
Time (12-hour format HH:MM AM/PM)
final
time24 RegExp
Time (24-hour format HH:MM)
final
twitterHandle RegExp
Twitter/X handle
final
url RegExp
URL validation
final
urlFlexible RegExp
URL with optional protocol
final
username RegExp
Username (alphanumeric, underscore, hyphen, 3-20 characters)
final
uuid RegExp
UUID (Universally Unique Identifier)
final
version RegExp
Version number (semantic versioning)
final
videoFile RegExp
Video file extension
final
youtubeUrl RegExp
YouTube URL
final
zipCodeUS RegExp
Zip code - US (5 or 9 digits)
final