| Title |
Test
Find
Pattern Title
|
| Expression |
^(?:[\w]+[\&\-_\.]*)+@(?:(?:[\w]+[\-_\.]*)\.(?:[a-zA-Z]{2,}?))$ |
| Description |
This validates an email address and only an email address. None of the <email> stuff, just [email protected]. Comments are more then welcome. |
| Matches |
|
| Non-Matches |
|
| Author |
Rating:
Not yet rated.
netFiends.com
|
| Source |
netFiends.com |
| Your Rating |
|
Title: STOP using regex to validate email
Name: Randal L. Schwartz
Date: 11/20/2005 5:53:40 PM
Comment:
This fails on fred*[email protected], for example.
If you don't know RFC822 (or haven't even heard of RFC822), DO NOT WRITE EMAIL VALIDATION REGEXEN. THEY ARE WRONG.