What is a valid email address format
A valid email address format is a string of characters that conforms to the following rules:
- Local part: The local part is the part of the email address that comes before the
@
symbol. It can contain:- Alphanumeric characters (letters and numbers)
- Dot (.) characters
- Hyphen (-) characters
- Underscore (_) characters
- The local part must be at least 1 character long, but there is no maximum length.
- Domain: The domain is the part of the email address that comes after the
@
symbol. It can contain:- Alphanumeric characters (letters and numbers)
- Dot (.) characters
- The domain must be at least 2 characters long, but there is no maximum length.
- Top-level domain (TLD): The TLD is the last part of the domain. It is usually a generic top-level domain (gTLD) such as
.com
,.org
,.net
, or a country-code top-level domain (ccTLD) such as.us
,.uk
, etc. - Email address syntax: The email address syntax is as follows:
Examples of valid email addresses:
Examples of invalid email addresses:
@example.com
(missing local part)john.doe@
(missing domain)john.doe@example
(missing TLD)[email protected]
(multiple consecutive dots)
Note that while the above rules are generally accepted, some email providers may have additional or stricter requirements for email addresses.