Re: Removing UTF-8 from text
| From: | Al | Date: | Wed, 03 Jan 2007 20:56:17 +0000 |
| Subject: | Re: Removing UTF-8 from text | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246489@lists.php.net to get a copy of this message | ||
Correction...
If your text is truly multiline, as you've shown, then you do need the 'M'
Al wrote:
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