my @emails = ( 'To: <firstone@somewhere.com>', 'To: You and I <secondone@somewhere.com>', 'To: thirdone@somewhere.com' ); for (@emails) { /^To:\s*[^<]*<([^>]+)>/ || /^To:\s*(.+)$/; print $1, $/; }
In reply to Re: Strip everything but an email address
by Anonymous Monk
in thread Strip everything but an email address
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |