From: Dermot
> 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.

Linux Journal has an article about email validation with RE in PHP. It
talks about some of the corner and boundary cases in excruciating
detail. It also lists test cases. Perhaps it could be ported to Perl
without too much difficulty.

  <http://www.linuxjournal.com/article/9585>

Bob McConnell

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


Reply via email to