Re: Removing UTF-8 from text

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

 



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@xxxxxxxxx> 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

--
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