0

In my application I validate emails; but we can give more than one email address separated with a semicolon (";"). How can I write the validation expression?

My emails look like this:

"[email protected];[email protected];[email protected] "

How can I write a regular expression for this?

2 Answers 2

1

Start with the basic email regex and then apply as follows:

<email regex>(;<email regex>)*
Sign up to request clarification or add additional context in comments.

3 Comments

hi Mr. Lgnaci Vazquez-Abrams can u give me the regular expression, thanks for response
@Surya, email regex is provied within VS.NET's regex validator option.
Thank you mr. Lgnaci Vazxquex abrams thanks for response and link
0

You can give this a try:

\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*

This is from RegexLib.com

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.