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\
In reply to Re: Grabbing e-mail addresses from a variable
by gellyfish
in thread Grabbing e-mail addresses from a variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |