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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[^_][a-zA-Z0-9_]+[^_]@{1}[a-z]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$
Description
this pattern validates email address. it allows (1)numeric characters and underscore(_) in an address.(2)numeric characters in domain name. it doesn't match user names with a dot(.). doesn;t allow username starting or ending with @ underscore. they can be used in between
Matches
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: WRONG WRONG WRONG AGAIN
Name: Randal L. Schwartz
Date: 3/18/2006 12:43:34 PM
Comment:
Please, moderators! For the love of humanity! Remove anything volunteering to "match an email address" and block the site software so it doesn't allow those to be submitted! As always, this so-called "email matcher" fails in the traditional ways... it matches what the author has "seen", and doesn't bother paying attention to WHAT IS LEGAL IN AN EMAIL ADDRESS. Therefore, it is useless. If you use a regex like this, you will UPSET YOUR USER BASE and they will take their business elsewhere.


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