Regular expression for validating email address
Suggestion's if the regex is correct: Wiki Link Local_part The local-part of the email address may use any of these ASCII characters. RFC 6531 permits Unicode characters beyond the ASCII range: .
They can get ridiculously convoluted as in the case above and, according to the specification, are often too strict anyway.
Email format: The regular expression for email is : Finally, the email address must end with two to four alphabets.
Having a-z and A-Z means that both lowercase and uppercase letters are allowed.
You'd be surprised at some examples of valid e-mail addresses.
As an additional example, see the "almost RFC 822 compatible regex" in this answer.
$ – End of the String Now let’s have a look at the program.