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:
"sasidhar@yahoo.com;suryasasidhar@gmail.com;srinivas@gmail.com "
How can I write a regular expression for this?
You can give this a try:
\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*This is from RegexLib.com