...and here I was trying to figure out how to validate multiple email addresses separated by a comma inside a textbox. Could not really find much help online on Regular Expression at first, but then learned about JScript Regular Expressions versus .NET RegEx and how JS RegEx is a subset of .NET RegEx, therefore most times you are better off using jScript on validators. Here is a link:  http://msdn2.microsoft.com/en-us/library/eahwtc9e(VS.80).aspx'">http://msdn2.microsoft.com/en-us/library/eahwtc9e(VS.80).aspx

I then learned here http://msdn2.microsoft.com/en-us/library/3206d374(VS.80).aspx"> http://msdn2.microsoft.com/en-us/library/3206d374(VS.80).aspx a little more about the syntax of RegEx (and remembered I knew all this stuff from my asp 3.0 previous life) and came up with this:


it is the built-in RegEx for emails, plus a clause allowing for an optional comma "([,])*". I also wrapped the whole thing on "(...)*" to allow for multiple occurrences.

Next thing I will do is make sure only once comma is accept4d instead of the "zero or many" criteria of "*", and will also (try to) find a way to not having a comma at the end without a valid email after it.

See ya!