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+[\w-\.]*\@\w+((-\w+)|(\w*))\.[a-z]{2,3}$
Description
Email validation. With this short expression you can validate for proper email format. It's short and accurate.
Matches
Non-Matches
Author Rating: The rating for this expression. Eric Lebetsamer
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: no numbers in the domain
Name: Sagiv
Date: 3/2/2010 1:57:50 PM
Comment:
i tried to enter numbers in the domain but the regex do not allow it. it does seem simple, but might need some changes, although i'm not proffetional to do so. great work though :)


Title: Short but not accurate
Name: neetugarg37
Date: 2/20/2009 12:14:26 AM
Comment:
hi,this e-mail validation is not accurate we can not properly validate with it. -------- neetu -------- <a href="http://www.casualdate.net.au/brisbane-dating"> Brisbane Dating</a>-Brisbane Dating


Title: Short but not accurate
Name: neetugarg37
Date: 2/20/2009 12:13:14 AM
Comment:
hi,this e-mail validation is not accurate we can not properly validate with it. -------- neetu -------- <a href="http://www.casualdate.net.au/brisbane-dating"> Brisbane Dating</a>-Brisbane Dating


Title: Short but not accurate
Name: neetugarg37
Date: 2/20/2009 12:12:25 AM
Comment:
hi,this e-mail validation is not accurate we can not properly validate with it. -------- neetu -------- <a href="http://www.casualdate.net.au/brisbane-dating"> Brisbane Dating</a>-Brisbane Dating


Title: Invalid
Name: Perttu
Date: 10/16/2006 8:47:35 AM
Comment:
How is it possible that programmers are STILL not aware of the .name domain??


Title: PHP Form abuse
Name: Reject a user to send an e-mail from Name adress
Date: 9/14/2005 8:52:35 PM
Comment:
Actually we have been receiving a lot of e-mails that seems that was sent from our contact form. All of them come from unexistent e-mail adress/users . One of our soulutions is to validate that if spammer type an e-mail adress in the Name field, then re-eject it. How must be programmed the expression to validate it and if is an e-mail re-eject it?


Title: Mr.
Name: Shylesh Govindan
Date: 12/4/2004 1:52:36 AM
Comment:
Not upto to the mark!


Title: Even your example doesn't work
Name: spook
Date: 11/13/2003 7:23:33 PM
Comment:
this expression is somewhat limited - ie it doesn't match [email protected], only [email protected] etc the example you give to try ([email protected]) doesn't work !


Title: Mr
Name: Rommel
Date: 4/27/2003 2:28:33 PM
Comment:
It may be short, but accurate ist's not!! Just try the valid email address: [email protected]


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