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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Validate Multiple Email Addresses
Expression
^((\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)\s*[,]{0,1}\s*)+$
Description
This will validate multiple email addresses that are comma delimited. You can change it to use commas or semilcolons. If you have to worry about a lot of special characters, you may have to edit it a little bit. It allows white space before and after the comma.
Matches
Non-Matches
test@test|[email protected],test@|test@ host.com
Author Rating: The rating for this expression. Dan Lorenz
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: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 9/21/2007 8:03:37 PM
Comment:
This regex is broken. The author has not paid attention to standard email addresses, as defined by RFC822 and RFC2822. Please read http://www.stonehenge.com/merlyn/UnixReview/col60.html for details.


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