go ahead... be a heretic | |
PerlMonks |
Re: Strip everything but an email addressby dominix (Deacon) |
on Feb 14, 2004 at 05:24 UTC ( [id://328933]=note: print w/replies, xml ) | Need Help?? |
"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
In Section
Seekers of Perl Wisdom
|
|