This pattern will reject some valid email addresses. The local part (the bit
bofore the @) is interpreted by the target email system and should not be
interpreted by source or intermediate systems. The meaning of it, including
what characters are legal, is entirely up to each email host. I cannot quote
you the RFC number from the top of my head, but I have seen a number of
websites fail on this. Some of my email addresses contain + for example.

Regards
Brett Connor


Quoting e-denton Java Programmer <[EMAIL PROTECTED]>:

>  Hi,
>
> If you aren't using Validator, you might find these useful:
>
> public static boolean isValidEmailAddress (String eMailAddress)
>   {
>   return eMailAddress.matches
> ("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*(\\.[_
> A-Za-z0-9-]+)");
>   }
>
>  public static boolean isValidURL (String url)
>   {
>   return url.matches
> ("^https?://([-\\w\\.]+)(:\\d+)?(/([-\\w/_\\.]*(\\?\\S+)?)?)?");
>   } // end isValidURL
>
> Happy Thanksgiving!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to