Title |
Test
Find
email
|
Expression |
^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$ |
Description |
checks all valid email id's |
Matches |
|
Non-Matches |
no |
Author |
Rating:
Not yet rated.
satish
|
Source |
|
Your Rating |
|
Title: Not fully RFC2822-compliant
Name: R
Date: 6/20/2007 4:43:19 PM
Comment:
A warning to anyone who reads this:
Randal is right; this regex does not even come close to matching all valid email addresses. Please check http://en.wikipedia.org/wiki/Email_address and http://tools.ietf.org/html/rfc2822 for more information.
Also note that the regex linked from the wikipedia entry is still not quite completely correct, but CONSIDERABLY closer than this mess.
Title: Good stuff
Name: Just Jack
Date: 5/3/2007 2:56:20 PM
Comment:
Randal, your postings all over this BB are rampant whining. Help suggest alternatives or stop complaining.
Title: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 12/1/2006 1:29:58 PM
Comment:
If you don't know what RFC822 is, you should NOT be writing email regex.
THIS REGEX DOES NOT MATCH VALID EMAIL. {sigh}