// @TODO Add IDN support (GNU lib?) Search for emailAddressRepeat
String emailAddress = String.valueOf(value);
- // Checks if the email address matches a regex ("low-level" check, should also be done by <f:validatorRegex />)
+ // Checks if the email address matches a regex ("low-level" check)
+ // @TODO Should also be done by <f:validatorRegex />)
boolean matches = Pattern.matches("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$", emailAddress); //NOI18N
// Is the email address valid?