Created
March 25, 2010 17:17
-
-
Save kara-ryli/343843 to your computer and use it in GitHub Desktop.
The HTML5 e-mail address syntax.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^(?:[a-z\d!#\$%&'\*\+\-\/=\?\^_`\{\|\}~]+|\.)+@[a-z\d\-]+(?:\.[a-z\d\-]+)*$/i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This regular expression describes the HTML5 e-mail address syntax. The syntax is described in the spec as ABNF format
But to figure out what the hell that means, you must read the ABNF format RFC, the e-mail RFC and a domain name RFC.