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_\-\.]+)@([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: iPhone view
Name: iPhone
Date: 6/13/2011 9:09:24 AM
Comment:
^(([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})+)*$


Title: ddd
Name: ddd
Date: 4/23/2011 12:26:40 AM
Comment:
ddd


Title: I think that pattern is correct
Name: Joe
Date: 2/10/2011 6:59:27 AM
Comment:
by the way,I want you to leave more examples of"Non-Matches" or "Matches". I`m still thinking how the Expression structured. I need more explanations so my rating is 4


Title: Works Great For List
Name: Terence
Date: 1/20/2011 5:50:45 PM
Comment:
This works great for a list of e-mail recipients; SQL does not like comma-delimited list but does like semi-colons. This works great for the SQL quirks. Thanks!!


Title: Works Great For List
Name: Terence
Date: 1/20/2011 5:50:29 PM
Comment:
This works great for a list of e-mail recipients; SQL does not like comma-delimited list but does like semi-colons. This works great for the SQL quirks. Thanks!!


Title: Thanks a Lot Yaar, U r doing great Job
Name: Abhinandan
Date: 11/24/2010 2:33:03 AM
Comment:
Thanks Man it work fine.


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-2014, RegexAdvice.com | ASP.NET Tutorials