Re: OT Useful Validation Routines

2004-11-26 Thread brettconnor
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 q

OT Useful Validation Routines

2004-11-26 Thread e-denton Java Programmer
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