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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))$
Description
Expression 1 of 2 used to check email address syntax.
Matches
[email protected] | bob.jones@[1.1.1.1] | [email protected]
Non-Matches
Author Rating: The rating for this expression. David Lott
Source http://netusi.com/regexp.htm
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: Review
Name: Welington
Date: 2/16/2015 8:14:52 AM
Comment:
Don't works with [email protected] or [email protected]


Title: Review
Name: Welington
Date: 2/16/2015 7:37:47 AM
Comment:
Don't works with [email protected] or [email protected]


Title: Review
Name: Welington
Date: 2/16/2015 7:37:14 AM
Comment:
Don't works with [email protected] or [email protected]


Title: 1
Name: 12
Date: 5/30/2008 1:17:32 PM
Comment:
444


Title: Fails to match valid email address
Name: The Fred and Barney Comedy Team <fred&[email protected]>
Date: 1/26/2005 3:19:11 AM
Comment:
Fails to match the valid email address fred&[email protected]


Title: hmm
Name: klatte
Date: 3/14/2004 6:57:10 PM
Comment:
[email protected] works


Title: only it doesn't work
Name: pinetree
Date: 6/16/2003 3:56:44 PM
Comment:
Except that per RFC 822 (http://www.w3.org/Protocols/rfc822/Overview.html), the following email addresses are valid but would be trapped as invalid by this code. Specifically, look at Appendix A (http://www.w3.org/Protocols/rfc822/Overview.html#z10), section A.3.3.<br><br> "Some Silly User"@example.com<br> Another'[email protected]<br> Yet/Another/Wacky/[email protected]


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