You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Alexey Panchenko <al...@olmisoft.com> on 2005/09/14 10:38:12 UTC
Re: [validator] EmailValidator string pattern
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 <HY...@FKHGSA>
System.out.println(EmailValidator.getInstance().isValid("hossa@good'night.com <HY...@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