Click here to Skip to main content
15,919,613 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Regular Expression for Validate E-mail Address format.?
Format: <Local-Part>@<Domain>

Maximum length up to 254 characters.
[64 for Local-part]

Valid characters in Local-Part:
[a–z, A–Z, 0-9]
! # $ % & ' * + - / = ? ^ _ ` { | } ~
International characters above U+007F are also permitted.
Characters with following restrictions:
Space and "(),:;<>@[] \

Restrictions:
· None of the above characters in the local part is allowed
outside quotation marks.

· Quotes (“) and backslashes (\) may only exist when within
quoted strings and preceded by a backslash.
Valid Ex: "VERY\\\".unusual\\"@strange.example.com
Invalid Ex: “very\unusual”@example.com

· Quoted strings must be followed by dot character or the quote
string should be the only element in the local-part.
Valid Ex: “abc”@gmail.com, “abc”.xy@example.com
Invalid Ex: just"not"right@example.com
Posted

1 solution

[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?
 
Share this answer
 
Comments
Ganeshaspy 4-Mar-14 4:38am    
Its working fine but I want validate above type of example.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900