On 03/01/07, Al <news@xxxxxxxxxxxxx> wrote:
Why not simply capture what you want, rather than try to remove what you don't want?
Because there are also emails in there in this format: name@xxxxxxx, another_name@xxxxxxxxxxx, somebody_else@xxxxxxxxxxx
preg_match_all("%<([\w\d@.]+)>%", $text, $matches); now print_r($matches[1]) and you see your addresses
Hey, that's pretty good! Thanks. I'm going to go reread and remind myself why you used % instead of slashes. I should know that, but I don't. Thanks. Dotan Cohen http://dotancohen.com/howto/firefox_password_manager.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php