am having a bad luck in validation of multiple emails seprated with comma Or Semi colon.
ValidationExpression="(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([;: ]+)?)+"
This validation works fine when multiple email separated with comma OR colon, but what i need more to bypass ENTER input too. Means if user hits enter after writing each emails.
How can i modify above expression so that it can eat Enter as well as comma and semi colon,
Thanks in advance
Using this in asp.net .
I don’t really see how that works with commas but this should make it work with multiple lines.
If you want it to work for commas I would think it would need to be this:
I should point out that I did not do anything to validate whether or not that was actually a good regex for validating email addresses. I just added the requested functionality.
I highly recommend The Regex Coach to help you build regex.
I also highly recommend http://www.regular-expressions.info/ as a reference.