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
----
----
reference: thread216-1203422
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