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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[a-z0-9][a-z0-9_\.-]{0,}[a-z0-9]@[a-z0-9][a-z0-9_\.-]{0,}[a-z0-9][\.][a-z0-9]{2,4}$
Description
for validate a email, but with this regex it 's possible : a._-z@a_.....____---.com
Matches
Non-Matches
[email protected] | a.@_1.com | azerty_@domain-com
Author Rating: Not yet rated. Laurent J
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: Chinese regex?
Name: Chinese-Tools.com
Date: 2/4/2007 6:05:42 AM
Comment:
I always wondered how will regex work with chinese characters...


Title: This regex doesn't work
Name: Vasiliy Ushakov
Date: 1/12/2007 9:42:45 AM
Comment:
I'm completely agree with mr. L. Beck, actually to Mr. Austin's point of removing useless regexes, you often learn more from a broken expression than from a working one!


Title: None
Name: None
Date: 12/10/2006 4:34:01 PM
Comment:
Hello, Nice site. I am able to learn many stotras. Very good work. http://company-christmas-party.orhat.info


Title: expressions
Name: Scott
Date: 9/28/2006 10:47:11 AM
Comment:
I really need to figure this out for my current site


Title: Kyle Thorn
Name: [email protected]
Date: 9/20/2006 10:41:41 PM
Comment:
Very many thanks for a good work. Nice and useful. Like it!


Title: Laura Karrere
Name: [email protected]
Date: 9/14/2006 6:21:04 PM
Comment:
Very many thanks for a good work. Nice and useful. Like it!


Title: Canada
Name: Canada
Date: 8/13/2006 7:37:54 PM
Comment:
There are two sides to everything.


Title: This regex doesn't work
Name: L. Beck
Date: 10/28/2004 6:03:46 PM
Comment:
Actually to Mr. Austin's point of removing useless regexes, you often learn more from a broken expression than from a working one...


Title: This is a community effort
Name: Steven Smith
Date: 9/16/2003 9:23:32 AM
Comment:
That's what the rating and comment systems are for. There are dozens of email validation regular expressions here. I expect most people to use the ones that have the best comments and highest ratings.


Title: This regular expression doesn't work.
Name: Tony Austin
Date: 9/15/2003 4:47:24 AM
Comment:
Using this regular expression on an order form, could lose you a sale! [email protected] could be a valid email address, but this RegEx won't match it. Therefore it is useless. Please remember, it's better to let an invalid email address get through than block a valid one. I wish the site moderators would go through their database and remove useless regular expressions like this one.


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