Re: Removing UTF-8 from text

From: Date: Wed, 03 Jan 2007 20:48:24 +0000
Subject: Re: Removing UTF-8 from text
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-246487@lists.php.net to get a copy of this message
You can use anything for delimiters "|" e.g., I like "%" m is for multiline, which I don't think you want here. s is for "dotall"; but, I don't see his dot. I try to avoid using dotall; it is too hard to think of everything it can include. Dotan Cohen wrote:
On 03/01/07, Richard Lynch <ceo@l-i-e.com> wrote:
Instead of trying to strip the UTF stuff out, try to capture the part you want: preg_match_all('|<[^>]>|ms', $emails, $output); var_dump($output);
Richard, I do have a working script now, but I'm intrigued by your regex. Why do you surround the needle with pipes, and what is the "ms" for? Dotan Cohen http://lyricslist.com/lyrics/artist_albums/336/mclachlan_sarah.html http://what-is-what.com/what_is/world_wide_web.html


« previous php.general (#246487) next »