| Title |
Test
Find
Pattern Title
|
| Expression |
^((?:(?:(?:\w[\.\-\+]?)*)\w)+)\@((?:(?:(?:\w[\.\-\+]?){0,62})\w)+)\.(\w{2,6})$ |
| Description |
Not a 100% email validation. It doesn't work with IP-Adresses, but it's good for most common cases. At least I hope so. |
| Matches |
a-b-c@d-e-f.com | a@b.ce | Me@my.museum |
| Non-Matches |
abc@def.g | a--b@c--d.fe | -abc@-def-.def |
| Author |
Rating:
Sebastian Hiller
|
| Source |
|
| Your Rating |
|
Title: Fails to match valid email address
Name: The Fred and Barney Comedy Team <fred&barney@stonehenge.com>
Date: 1/26/2005 3:04:31 AM
Comment:
Fails to match the valid email address
fred&barney@stonehenge.com
Title: Small Improvement
Name: Sebastian Hiller
Date: 3/3/2004 2:29:47 AM
Comment:
The original expression accepts adresses like ___@___.__ , this should work better:
^((?:(?:(?:[a-zA-Z0-9][\.\-\+\_]?)*)[a-zA-Z0-9])+)\@((?:(?:(?:[a-zA-Z0-9][\.\-\_]?){0,62})[a-zA-Z0-9])+)\.([a-zA-Z0-9]{2,6})$
But one problem remains: the max length of the Domainname is not correctly defined.