2008/11/10 Rob Coops <[EMAIL PROTECTED]>:
> On Mon, Nov 10, 2008 at 11:55 AM, Anusha Krishna chand <
> [EMAIL PROTECTED]> wrote:
>
>> Hi All,
>>      How to validate an email id using perl regular expression .........
>>
...
>
> As for how to actually do that... there are a lot of different ways and
> looking at the RFC822 there are very complex email address posibilities that
> even many of the major commercial mail servers out there will not accept
> because they are so extremely rare that it is easier not to bother with them
> then to try and figure out a way to match them.
> A full fletched way to match all possible types of email addresses does as
> far as I am aware not even exist.
>
> In any case having a look on cpan <http://search.cpan.org/> might help
> though I think you might be better helped havign a look at the email
> procject <http://emailproject.perl.org/>

I was sure that there was an FAQ about this that basically said you
can't just for the reasons that Rob has said. Email addresses of all
kinds can be valid

[EMAIL PROTECTED] is a valid email address according
to RFC822 but in practise will probably be undelivered.

Formbuilder and HTML::FormFu have email validation pattern.

Perhaps the better solution is to get the user to confirm the email
address in a 2nd field.

Dp.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to