[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail address validation



Pascal THIVENT <pthivent@sqli.com> wrote:
>on http://developer.netscape.com, you can find a set of javascript function
>to check a form.
>These function are based on regular expression that can be reused with PHP.
>So, let's go to
>http://developer.netscape.com/docs/examples/index.html?content=javascript.ht
>ml
>and then click on "Form Validation with JavaScript 1.2 Regular Expressions"
>I think you'll find what you're looking for

Oh dear. That's really quite a poor regex for e-mail addresses. It's
quite happy to accept 'this is not an@email.address', for instance.

The Perl Mail::Address module, in the mailtools package, does a somewhat
better job.

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: