emailRegExp property
final
Regular expression pattern to validate email addresses.
This pattern matches strings that represent a valid email address.
Example:
static final RegExp emailRegExp = RegExp(r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$');
- Matches: 'user@example.com', 'user.name@example.co.uk', '12345@test.com'
- Does not match: 'user@.com', '@test.com', 'user@test'
Implementation
static final RegExp emailRegExp =
RegExp(r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$');