Details
Description
Improve email validator regular expression from
private static final Pattern EMAIL_PATTERN = Pattern.compile("^\\w\\-(\\.\\w)\\w@(\\w\\-
.)[A-Z]
$", Pattern.CASE_INSENSITIVE);
to
private static final Pattern EMAIL_PATTERN = Pattern.compile("[a-z0-9!#$%&'*+/=?_`
{|}~-](?:.[a-z0-9!#$%&'*/=?^_`{|}
~-])@(?:[a-z0-9](?:[a-z0-9-][a-z0-9])?
.)[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$", Pattern.CASE_INSENSITIVE);
Riccardo
http://syncope-dev.1063484.n5.nabble.com/Email-address-validator-td5713393.html