Title |
Test
Find
Pattern Title
|
Expression |
^(?:[a-zA-Z0-9_'^&/+-])+(?:\.(?:[a-zA-Z0-9_'^&/+-])+)*@(?:(?:\[?(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))\.){3}(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\]?)|(?:[a-zA-Z0-9-]+\.)+(?:[a-zA-Z]){2,}\.?)$ |
Description |
this will validate most legal email addresses, even allows for some discouraged but perfectly legal characters in local part; allows IP domains with optional []; keeps final tld at a minmum of 2 chars; non capturing groups for efficiency |
Matches |
|
Non-Matches |
|
Author |
Rating:
Not yet rated.
Micah Duke
|
Source |
|
Your Rating |
|
Title: Doesn't handle double quotes
Name: Zeke Hudock
Date: 11/12/2007 2:30:21 PM
Comment:
Does not handle double quotes around the name (which is valid for an RFC2822 address).
Title: Email validation which only allows certain specific email address
Name: bruce
Date: 11/30/2006 8:01:40 AM
Comment:
How is it possible to have a regular validation expression where the ending of the email address (after the @) has to be the same. Therefore only allowing people with that type of email address to register yo my site.