Removing UTF-8 from text

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

 



I have many email address that are stored like this:
"=?UTF-8?B?15jXqNeR15XXp9eZ16DXlCDXnteo15nXkNeg15Q=?=" <name@xxxxxxxxx>,
"=?UTF-8?B?15nXoNem158g157XqNeZ15Q=?=" <person@xxxxxxxxxx>,
"=?UTF-8?B?15zXmSDXpNeV15zXmdeg15Q=?=" <human@xxxxxxxx>

I'm trying to run a script that will leave the file as so:
name@xxxxxxxxx,
person@xxxxxxxxxx,
human@xxxxxxxx

The first step is to remove the UTF-8 names. This code _doesn't_ work,
but I think that it should:
$text=preg_replace('/\"=\?UTF\-8\?B\?([a-z0-9]+)\?=\"/i', '', $text);

I've tried with single and double quotes, and I've tried backslashing
and not backslashing the question marks. Where am I erring? Thanks.

Dotan Cohen

http://technology-sleuth.com/long_answer/what_are_the_advantages_of_lcd_monitors.html
http://kubuntu.info

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