Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Strip everything but an email address

by dominix (Deacon)
on Feb 14, 2004 at 05:24 UTC ( [id://328933]=note: print w/replies, xml ) Need Help??


in reply to Strip everything but an email address

"everything EXCEPT" is too huge to describe so your question is actually, "How do I match an email adresse, then I can drop the rest". and it have been often asked over here. an the usual response is use Email::Valid. in your case if you want to rely on a regex look at this example from Mastering regular expression
anyway keep in mind : what should you match here ? q/to: "me@me.fr" <to@to.pf> /
--
dominix
  • Comment on Re: Strip everything but an email address

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found