| Title |
Test
Find
Email Address Format
|
| Expression |
^([a-zA-Z0-9]+[._-])*[a-zA-Z0-9]+@(([a-zA-Z0-9]+|([a-zA-Z0-9]+[.-])+)[a-zA-Z0-9]+\.[a-zA-Z]{2,4}|([a-zA-Z]\.com))$ |
| Description |
Validates format of email addresses including q.com but not q.net |
| Matches |
|
| Non-Matches |
|
| Author |
Rating:
Not yet rated.
Fred Scott Thompson
|
| Source |
|
| Your Rating |
|
Title: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 1/14/2009 11:51:16 AM
Comment:
Please read RFC 5322. Your code wrongly rejects <fred&[email protected]> which is a fully valid and live email address.