I have a line of text that I want to pull an e-mail address out from. Is
this the best way to pull that information from that line?

<snip>
$user = 'From: "First Last Name" <[EMAIL PROTECTED]>';

@addy = split(/</, $user, 2);
chop $addy[1];
</snip>


Also, how do you handle if the email is in brackets like so?

$user = 'From: "First Last Name" [EMAIL PROTECTED]';






--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to