Created
January 10, 2012 15:34
-
-
Save SteveMarshall/1589635 to your computer and use it in GitHub Desktop.
HTML5 Extended-regex for email
This file contains 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-zA-Z0-9.!#$%&'*+-/=?\^_`{|}~-]+ # one or more of these pre-@ | |
@ | |
[a-zA-Z0-9-]+ # first (mandatory) domain-part | |
(?:\.[a-zA-Z0-9-]+)* # subsequent (optional) domain parts inc. TLD | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment