RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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}


Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials