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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Ultimate email, e-mail
Expression
/^([a-z0-9])(([\-.]|[_]+)?([a-z0-9]+))*(@)([a-z0-9])((([-]+)?([a-z0-9]+))?)*((.[a-z]{2,3})?(.[a-z]{2,6}))$/i
Description
Matches any valid e-mail... Kind of large, but worth it to those who really care............email, e-mail, e mail
Matches
Any Valid E-Mail
Non-Matches
Any Non-Valid E-Mail
Author Rating: The rating for this expression. James DeLong
Source Myself (JDELONG)
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: working
Name: Ventsislav Mladenov
Date: 5/26/2010 5:19:24 AM
Comment:
This expression working , but there is few external charters from the begging and at the end. ^([a-z0-9])(([\-.]|[_]+)?([a-z0-9]+))*(@)([a-z0-9])((([-]+)?([a-z0-9]+))?)*((.[a-z]{2,3})?(.[a-z]{2,6}))$


Title: Obviously not tested
Name: dave
Date: 9/3/2007 11:23:48 PM
Comment:
Is this a joke?


Title: bullshit
Name: chris
Date: 7/12/2007 10:32:02 AM
Comment:
Validates every valid e-mail address right? ROFL e.g. [email protected] is not validated correctly Please delete this regular expression from the site. Thanks!


Title: Poor matching ability
Name: Richard
Date: 6/28/2007 1:10:08 AM
Comment:
Sorry James, not validating even simple email addresses.


Title: Obvious Flaw
Name: Bill Lucas
Date: 5/30/2007 11:56:06 AM
Comment:
[email protected] would not match in the test.


Title: DOES NOT WORK
Name: Steve
Date: 1/9/2007 2:38:55 PM
Comment:
This doesn't work. At ALL.


Title: DOES NOT WORK
Name: Sam D
Date: 12/27/2006 11:18:54 AM
Comment:
Tried several times with different email address - it returns no match


Title: Doesn't work...
Name: foo
Date: 11/29/2006 12:00:33 PM
Comment:
Tried with several variations of email addresses and does not work. Test always returns "No matches"


Title: THIS DOES NOT MATCH VALID EMAIL AS ADVERTISED
Name: Randal L. Schwartz
Date: 7/6/2006 12:54:47 AM
Comment:
Again, yet another so-called "email matcher" that is hopelessly naive. PLEASE. If you don't refer to RFC822 or RFC2822 in your posting, I WILL VOTE IT DOWN AND YELL AT YOU FOR POSTING IT. This post, like the dozens others here, is BROKEN. DO NOT USE.


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