Re: Re: Removing UTF-8 from text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux