Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Validation for Multiple Email Addreses - thread216-1203422

Status
Not open for further replies.

buck1107

Programmer
May 30, 2007
1
US
Hi,
I have been working with the excellent javascript/regex script below for email validation in a form (with comma or semicolon separating multiple email addresses), and the only problem I'm currently having in testing it, is that I can type two email addresses back to back without comma or semicolon (run-on) and the script doesn't catch it.
Thanks for any help anyone can provide.
Regards,
Louis
----
Code:
var  expression=/^(([a-zA-Z0-9\-\._]+)@(([a-zA-Z0-9\-_]+\.)+)([a-z]{2,3})([,;]\W?(?!$))?)+$/;
----


reference: thread216-1203422
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top