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

Please support RegExLib Sponsors

Hosting Spotlight

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$
Description
this will accept multiple email ids separated only by semi-colons (anyway u can change it).
Matches
te_s-t@ts.co.in;te_s-t@ts.co.in;te_s-t@ts.co.in
Non-Matches
nospace@between.mailids.in ; only@semi.colons.com
Author Rating: The rating for this expression. narendiran dorairaj
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: Somewhat incorrect
Name: Mitu
Date: 4/9/2009 2:56:48 AM
Comment:
This regex also allows dot sign(.) after @ symbol, which is incorrect


Title: thanks a lot man...
Name: Godson
Date: 3/20/2009 7:21:26 AM
Comment:
nice code.. its working very pakkaa.. thank u so much yaar..


Title: thanks
Name: boomi
Date: 10/22/2008 9:38:38 AM
Comment:
very thankful for your code. Very excl..nt


Title: doesn't work correctly
Name: Anonymous
Date: 2/13/2007 8:07:26 AM
Comment:
htis regex validates incorrect email addresses. for example: abc@abc.abc@abc.abc is a valid email according to this expression


Title: Very Good But Can be Improved
Name: Anonymous
Date: 10/3/2006 3:35:46 PM
Comment:
It's very good but if you could update it to include french/spanish characters in email address, that would be even better.


Title: Not perfect but ...
Name: Arigamor
Date: 6/22/2006 9:17:38 AM
Comment:
Maybe it´d be not perfect, but is usefull for most of emails addresses. No being an expert can´t do it better. Thank.


Title: That's not email addresses!
Name: Randal L. Schwartz
Date: 2/16/2005 9:30:55 AM
Comment:
You are failing to match: fred&barney@stonehenge.com, *@qz.to and yes, those are both valid *working* email addresses. Please read the spec. (In fact, you can send email to that first one, and you'll reach my bot, and the second one reaches my friend "eli the bearded".) Matching a *valid* email address with a regex requires an 8000-char regex.


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