Is there a Java implementation of the HTML5 input email validation?
问题 I'd like to use the new <input type="email" /> element. I'd like to have Java code that implements the same validation on the server that happens in the browser. The HTML5 spec defines email addresses in ABNF as: 1*( atext / "." ) "@" ldh-str *( "." ldh-str ) where: <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str> <let-dig-hyp> ::= <let-dig> | "-" <let-dig> ::= <letter> | <digit> <letter> ::= any one of the 52 alphabetic characters A through Z in upper case and a through z in lower case