[hibernate-issues] [Hibernate-JIRA] Created: (HV-554) Regular Expression for @Email

William Hardwick (JIRA) noreply at atlassian.com
Thu Feb 2 12:42:12 EST 2012


 Regular Expression for @Email
------------------------------

                 Key: HV-554
                 URL: https://hibernate.onjira.com/browse/HV-554
             Project: Hibernate Validator
          Issue Type: Improvement
          Components: validators
    Affects Versions: 4.2.0.Final
            Reporter: William Hardwick
            Priority: Minor


It would be nice if @Email allowed for a regular expression like @URL does.  For example, we wanted to restrict emails to external addresses only (i.e. ending in .com, .net, etc.), but the @Email validation allows internal addresses as well, for example bob at mycompany instead of bob at mycompany.com.  We had to write our own custom validation to handle this.

@Email(regexp="myRegexp")

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list