Re: Re: Removing UTF-8 from text
| From: | Dotan Cohen | Date: | Wed, 03 Jan 2007 18:52:50 +0000 |
| Subject: | Re: Re: Removing UTF-8 from text | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246474@lists.php.net to get a copy of this message | ||
On 03/01/07, Al <news@ridersite.org> 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@isp.com, another_name@website.com, somebody_else@address.com
preg_match_all("%<([\w\d@.]+)>%", $text, $matches); now print_r($matches[1]) and you see your addressesHey, 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