i have the following regex works validate email:
[a-za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-za-z0-9](?:[a-za-z0-9-]*[a-za-z0-9])?\.)+[a-za-z0-9](?:[a-za-z0-9-]*[a-za-z0-9]) but want add regex make fail if part of email contains characters such ".
if add
(?<!".*) to front of current regex expression, regex match fail if email address contains "
Comments
Post a Comment