[thelist] regular expression help

MILLER David R. dmiller at mcc.ca
Mon Feb 5 12:27:39 CST 2001


Split the string on comma to an array and validate each member of the array.

---------------FROM-------------------
David R. Miller
Manager, Computer-Based Testing
Medical Council of Canada
dmiller at mcc.ca
(613) 521-6012
(613) 521-9722 (fax)
-----------------------------------------

Original message:
Message: 7
Date: Mon, 5 Feb 2001 09:51:15 -0800 (PST)
From: sarah <disaster7 at yahoo.com>
To: thelist at lists.evolt.org
Subject: [thelist] regular expression help
Reply-To: thelist at lists.evolt.org

I have a Javascript regular expression that validates
an email address for correct formatting:

/^[A-Za-z0-9_\.-]+@[A-Za-z0-9_\.-]+\.[A-Za-z]+$/

But now I need one that validates what could be a list
of email addresses separated by commas or just one
email address. I must not be thinking right today
because I can't figure out something that works and it
should be so simple. Any help?

Thanks,
Sarah




More information about the thelist mailing list