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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Simple E-mail Regex
Expression
^[a-zA-Z0-9._\-]+@[a-z0-9\-]+(\.[a-z]+){1,}$
Description
Matches simple e-mail addresses such as [email protected], [email protected], but does not place any restrictions on TLDs other than they must be lower case and alphabetic. a-z, A-Z, 0-9, ., _, and - are all allowed on the left side of @.
Matches
Non-Matches
@test.com|@.com|@.
Author Rating: The rating for this expression. Kevin Herrera
Source http://codealchemy.com/
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: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 10/8/2008 9:01:16 PM
Comment:
Please go read RFC822 and RFC2822 and the new one they just made that I haven't memorized the number for. YOU DO NOT KNOW WHAT A VALID EMAIL LOOKS LIKE. Learn first, then publish.


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