^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*((\\.[A-Za-z]{2,}){1}$)
the Wicket _expression_:
^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$
almost identical, but 'large TLD compatible' (the pattern in wicket has the argument 'Pattern.CASE_INSENSITIVE ' and therefore they don't need to define the upper-case charcters).
your pattern looks a bit too complicated for the job :P
Michiel
On 6/20/06,
Frank Bille Jensen <[EMAIL PROTECTED]> wrote:
Thats right.. In our company we use the (crazy) regex pattern taken from
http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
String emailPattern = [...]
Would anyone in the wicket team like to use this as the emailvalidation
pattern instead, I would be happy to submit a patch (for both 1.2 or 2.0
if thats the case).
Regards
Frank Bille
Avaleo
On Tue, 2006-06-20 at 10:08 +0200, Michiel Korthuis wrote:
> hi,
>
> In
> wicket.markup.html.form.validation.EmailAddressPatternValidator.java
> the validation-_expression_ is incorrect.
> the regular _expression_ reads:
> ^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\
> \.[a-z]{2,3})$
>
> According to this _expression_ the TLD is 2 or 3 characters, but that's
> incorrect.
> Nowadays it can exceed the limit of 3 characters (for example: ".aero"
> or ".travel". Source: http://www.iana.org/gtld/gtld.htm ).
>
> Michiel
>
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
_______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
