Re: Removing UTF-8 from text
| From: | Richard Lynch | Date: | Thu, 04 Jan 2007 22:17:18 +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-246550@lists.php.net to get a copy of this message | ||
On Wed, January 3, 2007 3:46 pm, Roman Neuhauser wrote:
> # 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/".
I'm pretty sure Dotan has re-read those pages almost as many times as
I have...
But that doesn't guarantee comprehension...
:-)
I don't mind answering Regex questions (PHP-related) because I know it
took me *years* to even come close to being able to do anything with
PCRE that wouldn't have been done faster/easier with str_replace and
friends.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?