Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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('me@example.com') ? 'yes' : 'no');

Cheers,

Brent

-- Yeah, I'm a Delt.

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://961675]
help
Chatterbox?
[GotToBTru]: I appreciate the ability to highlight matching brackets/ parentheses/ braces, both for my own code and the inconsistently indented code of others
[Corion]: I like editors that automatically highlight the matching parenthesis (like % in vi), but that's roughly the extent to which I like editor support ;)
[GotToBTru]: same here Corion.
[Corion]: I tried for a short time (well, 8 hours now) to get Perl::Tidy set up but then found that it doesn't support (new-style) signatures and then stopped again ;))
[GotToBTru]: changing the font color of the rest of the document just because I typed a single quote character is annoying

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-02-27 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.