Then take a look at the Owl (Regular Expressions) book.  The first
appendix, if I recall correctly) has an regex that will validate an e-mail
address.  The regex is something over 2,000 characters long.  Nota Bene:
xxx....@zzz.www IS NOT the only valid format for an email address....  In
this case, you really need to rethink your objection to using the proper
CPAN module.


B


On Thu, Jul 10, 2014 at 11:42 AM, Sunita Pradhan <
sunita.pradhan.2...@hotmail.com> wrote:

> I do not want to use Cpan modules .
>
> -Sunita
>
> > Date: Thu, 10 Jul 2014 11:33:24 -0700
> > Subject: Re: script to match a valid email id
> > From: r...@i.frys.com
> > To: sunita.pradhan.2...@hotmail.com
> > CC: beginners@perl.org
>
> >
> > Sunita Pradhan wrote:
> > > I want to write a script which will verify a valid email address .
> > > Could anybody give some ideas , how to write a pattern for this ?
> > >
> > > -Sunita
> > >
> >
> > Take a look at the Email::Valid module.
> > http://search.cpan.org/~rjbs/Email-Valid-1.194/lib/Email/Valid.pm
> >
> >
> > --
> > To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> > For additional commands, e-mail: beginners-h...@perl.org
> > http://learn.perl.org/
> >
> >
>



-- 

Bob Goolsby
bob.gool...@gmail.com

Reply via email to