You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Riccardo Costa (JIRA)" <ji...@apache.org> on 2013/03/29 12:19:15 UTC
[jira] [Created] (SYNCOPE-348) Email address validator
Riccardo Costa created SYNCOPE-348:
--------------------------------------
Summary: Email address validator
Key: SYNCOPE-348
URL: https://issues.apache.org/jira/browse/SYNCOPE-348
Project: Syncope
Issue Type: Improvement
Affects Versions: 1.0.6
Reporter: Riccardo Costa
Priority: Minor
Improve email validator regular expression from
private static final Pattern EMAIL_PATTERN = Pattern.compile("^[\\w\\-]([\\.\\w])+[\\w]+@([\\w\\-]+\\.)+[A-Z]{2,4}$", 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira