I'm new with regular expression. I have a regular expression that validate a valid email
if(value.search(/^((\w|-)+\.)*(\w|-)+
@((\w|-)+\.)+\w{2,3}$/) == -1)
{
alert("Email is invalid.");
return false;
}
and I want to allow user not only to enter one email, but more than one with a semicolon as the separation. example:
abc@abcd.com ;
aaa@xyz.com;
bbb@xyz.comThis regular expression can only validate one email. If I put in a semicolon and another email, it sees as invalid. Please advice how I can change this so I can have multiple email. Thanks.