in reply to Grabbing e-mail addresses from a variable
No that will only get the first one. You want something more like:
(Only tested with very limited cases). But my vote would be to use HTML::LinkExtor in preference to some regex which is bound to fail under some circumstance.my @addrs = ($data =~ /mailto:(.+?\@[^">\s]+)"?/g);
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Grabbing e-mail addresses from a variable
by Anonymous Monk on Jun 20, 2003 at 11:34 UTC | |
|
Re: Re: Grabbing e-mail addresses from a variable
by nite_man (Deacon) on Jun 20, 2003 at 13:19 UTC |