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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Email Address Format
Expression
^([a-zA-Z0-9]+[._-])*[a-zA-Z0-9]+@(([a-zA-Z0-9]+|([a-zA-Z0-9]+[.-])+)[a-zA-Z0-9]+\.[a-zA-Z]{2,4}|([a-zA-Z]\.com))$
Description
Validates format of email addresses including q.com but not q.net
Matches
Non-Matches
Author Rating: Not yet rated. Fred Scott Thompson
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: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 1/14/2009 11:51:16 AM
Comment:
Please read RFC 5322. Your code wrongly rejects <fred&[email protected]> which is a fully valid and live email address.


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