RegexConstants class
Regular expression constants for Indian format validation.
This file contains all regex patterns used throughout the package for validating various Indian identification numbers and formats.
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: 12 digits (with or without spaces/hyphens)
Example: 2345 6789 0123 or 234567890123
final
- decimal → RegExp
-
Decimal number (for currency parsing)
final
- drivingLicense → RegExp
-
Driving License: Various state formats
Common format: XX00-0000-0000000 or XX00 0000 0000000
Example: MH01-2023-0012345
final
- gst → RegExp
-
GST number: 15 characters
Format: 2 digits (state) + 10 chars (PAN) + 1 digit + 1 letter + 1 alphanumeric
Example: 27AAPFU0939F1ZV
final
- ifsc → RegExp
-
IFSC code: 4 letters (bank code) + 0 + 6 alphanumeric (branch code)
Example: SBIN0001234
final
- mobile → RegExp
-
Indian mobile number: 10 digits starting with 6-9
Example: 9876543210
final
- mobileWithCode → RegExp
-
Mobile with country code: +91 or 0 prefix
Example: +919876543210, 09876543210
final
- numeric → RegExp
-
Numeric string (for parsing)
final
- pan → RegExp
-
PAN card format: 5 letters, 4 digits, 1 letter
Example: ABCDE1234F
final
- pincode → RegExp
-
Indian PIN code: 6 digits
Example: 411001
final
- upi → RegExp
-
UPI ID: username@provider
Example: someone@upi, user@okaxis
final
- voterID → RegExp
-
Voter ID (EPIC): 3 letters + 7 digits
Example: ABC1234567
final