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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Email
Expression
^[^_.]([a-zA-Z0-9_]*[.]?[a-zA-Z0-9_]+[^_]){2}@{1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$
Description
Email-it is an extension to my previous expression for Validating email address.it has the following additional features: 1-username cant begin with a periods(.) and underscore(_) 2-maximum 2 periods(.) can be used in a username(previous xprsn didn't allowed any)(remember gmail which allows periods)
Matches
[email protected] and previous ones
Non-Matches
Author Rating: Not yet rated. Vijay Joshi
Source [email protected]
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: Not that good.
Name: nick
Date: 7/31/2007 10:24:38 AM
Comment:
This doesn't work for something as simple as [email protected]. I'd think that would be a pretty easy test case to pass.


Title: periods in domain problem
Name: Chris T
Date: 11/1/2006 6:04:23 PM
Comment:
only 2 periods allowed in domain name, but many domains (specialy educational and firms with complex hierarhical structure) have much more of dots! e.g. i have adress in academic domain with 4 dots.


Title: WRONG WRONG WRONG AGAIN
Name: Randal L. Schwartz
Date: 3/18/2006 12:44:58 PM
Comment:
Man, must be the day for BAD EMAIL MATCHERS.


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