Companion
Contains static declarations for the EmailAddressRegex type.
Functions
Returns a regular expression for validating email addresses that only accepts lowercase letters, corresponding to the following pattern: ^[a-z]+@[a-z]+\.[a-z]+$
.
Returns a regular expression for validating email addresses that only accepts lowercase letters and digits, corresponding to the following pattern: ^[0-9a-z]+@[0-9a-z]+\.[0-9a-z]+$
.
Returns the default regular expression for validating email addresses, corresponding to the following pattern: ^\S+@\S+\.\S+$
.
Returns a regular expression for validating email addresses from the specified pattern, or returns null
if the pattern doesn't match the default one.
Returns a regular expression for validating email addresses from the specified pattern, or throws an IllegalArgumentException if the pattern doesn't match the default one.