On Fri, 11 Jul 2014 10:20:10 +0300 Yosef Levy <yosi.lev...@gmail.com> wrote: > 2014-07-10 21:30 GMT+03:00 Sunita Pradhan > <sunita.pradhan.2...@hotmail.com>: > > > 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 ?
> \b[\w\.-]+@[\w\.-]+\.\w{2,4}\b > This was taken from: > http://www.regexr.com/ And is hopelessly naive, and will reject lots of perfectly valid email addresses. For instance, there are lots of new TLDs these days longer than 4 characters - .ninja, .museum, .report, .services, .vision, etc etc etc. It would also match e.g. --a...@--.abcd' and lots of other completely invalid addresses. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/