In comp.lang.javascript message <11**********************@g4g2000hsf.goo
glegroups.com>, Tue, 26 Jun 2007 15:21:51, wizard04 <wi******@gmail.com>
posted:
>I'm trying to validate an email address field before it is submitted.
I have read RFC 822 (http://www.faqs.org/rfcs/rfc822.html) but I'm not
sure I'm fully grasping it. As far as I understand, a convoluted
email address like andy."har<ri>\"son"@example.com would be
valid. Please correct me if I'm wrong.
Since it is impossible to determine whether an actual address is correct
- here, *0723 is currently valid, but soon it will not be - there's no
point in rigorously checking the format (unless you are an issuer of new
addresses).
The only sensible tests are whether the field has been left empty, and
whether the field might be an E-address. See
<URL:http://www.merlyn.demon.co.uk/js-valid.htm#VEmA>.
It's a good idea to write the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.