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 10:00 PM, pradeep parvathipuram
<[EMAIL PROTECTED]> wrote:
> 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)|(\\.aero)|(\\.arpa)|(\\.coop)|(\\.int)|(\\.jobs)|(\\.museum)|(\\.name)|(\\.pro)|(\\.travel)|(\\.nato)|(\\..{2,3})|(\\..{2,3}\\..{2,3}))$)\\b
>
>
> from
>
> http://struts.apache.org/2.x/docs/email-validator.html.
>
>
> Can someone please let me know if it was built on RFC 2822?
> or is there any other standards followed. please let me know.
>
> Thanks
> Pradeep
>
>
>
>
>
> ---------------------------------
> Never miss a thing. Make Yahoo your homepage.
--
Illya Kysil
-------------------------------------------------------------------------
Shakespeare / King Henry IV
GLENDOWER I can call spirits from the vasty deep.
HOTSPUR Why, so can I, or so can any man;
But will they come when you do call for them?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]