Re: Removing UTF-8 from text

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

 



# dotancohen@xxxxxxxxx / 2007-01-03 22:41:54 +0200:
> 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?

It's for "Did you know that the syntax is described in the manual? Did
you know that PHP has a manual on the web? It's at http://www.php.net/";.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

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