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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Email
Expression
^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$
Description
Check email format
Matches
username@domain.com | u-s_e.r1@s-ub2.domain-name.museum:8080 | user_name@123.123.123.12
Non-Matches
user@domain | user@domain.c | user.@domain.com
Author Rating: Not yet rated. Key Sutim
Source nick bennett
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: 2/12/2008 1:12:03 PM
Comment:
This does NOT VALIDATE EMAIL ADDRESSES. The minimum regex that can validate an ACTUAL email address is at http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html Please go read that, and then know why I'm laughing at yours.


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