Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: RegExp help

by dorko (Parson)
on Mar 26, 2012 at 14:17 UTC ( #961675=note: print w/ replies, xml ) Need Help??

in reply to RegExp help

If you're not good at RegEx, I wouldn't suggest trying to parse email addresses with them. It's harder than it looks and you can get yourself into trouble using regular expressions like that.

Instead, try something like Email::Valid. From the docs for Email::Valid:

use Email::Valid; print (Email::Valid->address('') ? 'yes' : 'no');



-- Yeah, I'm a Delt.

Comment on Re: RegExp help
Download Code
Replies are listed 'Best First'.
Re^2: RegExp help
by heatblazer (Scribe) on Mar 26, 2012 at 15:45 UTC

    Thank you, but I`ll try learning regex because I just want to know it. Will keep in mind this module you suggested.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://961675]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-02-07 09:48 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (250 votes), past polls