commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Panchenko <alex+n...@olmisoft.com>
Subject Re: [validator] EmailValidator string pattern
Date Wed, 14 Sep 2005 08:38:12 GMT
Tan Quach wrote:

> The EmailValidator declares a constant called

> String EMAIL_PATTERN = "/^(.+)@(.+)$/";

> However, this pattern accepts the following email address as valid: 

> hossa@good'night.com <HYJDTYJ@FKHGSA>

System.out.println(EmailValidator.getInstance().isValid("hossa@good'night.com <HYJDTYJ@FKHGSA>"));

Output is "false", since there are more checks in the code, not only
this pattern.

-- 
Best regards,
 Alexey                            mailto:alex+news@olmisoft.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message