Re: Removing UTF-8 from text

From: Date: Wed, 03 Jan 2007 21:46:34 +0000
Subject: Re: Removing UTF-8 from text
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-246486@lists.php.net to get a copy of this message
# dotancohen@gmail.com / 2007-01-03 22:41:54 +0200: > 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? 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

« previous php.general (#246486) next »