G
Guest
I am using a RegularExpressionValidator control on my ASP page, and I have
the ValidationExpression property set to "Internet E-mail Address". The
email address is valiated when the user puts in a email addess in the TextBox.
This works fine until I have multiple email addresses. How can I validate
multiple e-mail addresses seperated by a "," or ";"? The following
ValidationExpression will validate up to 2 email addresses but not anymore:
\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*
Any suggestion would be helpful. The number of emails could be infinite,
but I think the max will be 10 at most.
Thanks,
the ValidationExpression property set to "Internet E-mail Address". The
email address is valiated when the user puts in a email addess in the TextBox.
This works fine until I have multiple email addresses. How can I validate
multiple e-mail addresses seperated by a "," or ";"? The following
ValidationExpression will validate up to 2 email addresses but not anymore:
\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*
Any suggestion would be helpful. The number of emails could be infinite,
but I think the max will be 10 at most.
Thanks,