Displaying page
of
pages;
Items to
| Title |
Test
Details
Pattern Title
|
| Expression |
^[\w\.=-]+@[\w\.-]+\.[\w]{2,3}$ |
| Description |
Much simpler email expression. This one forces a length of 2 or 3, which fits current specs, but you may need to alter the end as this one allows all numerals on the .COM section. |
| Matches |
|
| Non-Matches |
word | word@ | @word |
| Author |
Rating:
Gregory Beamer
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^.+@[^\.].*\.[a-z]{2,}$ |
| Description |
Most email validation regexps are outdated and ignore the fact that domain names can contain any foreign character these days, as well as the fact that anything before @ is acceptable. The only roman alphabet restriction is in the TLD, which for a long time has been more than 2 or 3 chars (.museum, .aero, .info). The only dot restriction is that . cannot be placed directly after @.
This pattern captures any valid, reallife email adress. |
| Matches |
|
| Non-Matches |
|
| Author |
Rating:
Thor Larholm
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^((\"[^\"\f\n\r\t\v\b]+\")|([\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&\'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$ |
| Description |
Email address validator. Should cover most of RFC 822, including unusual (but still valid) addresses. Does not restrict the top level domain size, but you're better off doing an nslookup or similar if you absolutely must have a valid domain. Accepts IP Addresses instead of the domain, with or without brackets. Believe it or not, this one is valid: !#$%^&*-+~/'`|{}@xyz.com
Sorry looks like this site is mangling the quote and ampersand characters - you'll have to fix that yourself. |
| Matches |
|
| Non-Matches |
./A/Wacky/ [email protected] | bob.builder@[256.1.1.1] | -"blah b. blahburger"@blah.com |
| Author |
Rating:
Roger Ramjet
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^((?:(?:(?:[a-zA-Z0-9][\.\-\+_]?)*)[a-zA-Z0-9])+)\@((?:(?:(?:[a-zA-Z0-9][\.\-_]?){0,62})[a-zA-Z0-9])+)\.([a-zA-Z0-9]{2,6})$ |
| Description |
Captures Submatches, problem:domainname length can be longer than 64 chars, because every [a-zA-Z0-9][\.\-_] is only countet as one char. |
| Matches |
|
| Non-Matches |
|
| Author |
Rating:
Sebastian Hiller
|
Displaying page
of
pages;
Items to