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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Email regexp for ereg()
Expression
^[a-z0-9_]{1}[a-z0-9\-_]*(\.[a-z0-9\-_]+)*@[a-z0-9]{1}[a-z0-9\-_]*(\.[a-z0-9\-_]+)*\.[a-z]{2,4}$
Description
Checks whether email in the string that must be an E-mail address
Matches
a-_tech.kr@mte.kab
Non-Matches
a-_tech.kr@_mte.kab
Author Rating: Not yet rated. Axel Foly
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: Far too limiting
Name: Chris
Date: 12/25/2006 6:15:04 PM
Comment:
I'm sorry I have to rate it low but this is again a very limited e-mail checker. According to the RFC 822 and RFC2822loads of other characters and formulations are valid. As well as other country codes. ok, they are rare, but why disriminate minorities? PHP-ers please use the function at http://code.iamcal.com/php/rfc822/rfc2822.phps


Title: Many false negatives
Name: Chris Hayes
Date: 12/3/2006 8:22:58 PM
Comment:
You will have many potential false negatives with this one, by missing quite some permitted emailcharacters and by restricting the end to 4 characters. BTW Randal we are at RFC2822 now. PHP-ers go to http://code.iamcal.com/php/rfc822/rfc2822.phps


Title: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 11/29/2006 3:20:11 PM
Comment:
Once again, a broken email. IF YOU DON'T KNOW WHAT RFC822 IS, STOP WRITING EMAIL VALIDATORS. Sheesh. Like the other 125 email validators here, THIS ONE IS BROKEN TOO.


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