Re: Struts Email Validator

2008-03-18 Thread Dave Newton
Please move this discussion over to struts-user. Note that a regular expression that correctly validates any RFC 2822-compliant email address is quite... interesting. See http://www.regular-expressions.info/email.html for more info. Dave --- Illya Kysil <[EMAIL PROTECTED]> wrote: > Hi, > > The

Re: Struts Email Validator

2008-03-18 Thread Illya Kysil
Hi, The local part of address (the part before @) can be literally anything according to RFC 2822, you need proper escaping and/or quoting though. The regexp shown allows only a limited set of characters in local part, so it's definitely not created according to RFC 2822. On Tue, Mar 18, 2008 at

Struts Email Validator

2008-03-18 Thread pradeep parvathipuram
Hello, I have a quick question about the email validator that comes with struts 2.x. I saw the regular expression that it is using is \\b(^[_A-Za-z0-9-](\\.[_A-Za-z0-9-])*@([A-Za-z0-9-])+((\\.com)|(\\.net)|(\\.org)|(\\.info)|(\\.edu)|(\\.mil)|(\\.gov)|(\\.biz)|(\\.ws)|(\\.us)|(\\.tv)|(\\.cc)|