Re: preg_match and multibyte

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

 





tedd wrote:
At 4:18 PM +0200 4/9/09, Merlin Morgenstern wrote:
Hello,

I am trying to extract a number out of a string that is in utf-8 and contains chines characters.

This unfortunatelly does not work:

        preg_match('{(\d+)}', $details, $m);
        $number = $m[1];

I also tried to utf8decode it, but still, no luck.

Does anybody know how to overcome this problem?

Regards, Merlin

That's simple, there's no "chines" characters in Unicode.

Cheers,  :-)

tedd


:-) sorry about my spelling. Chinese.
e.g.:
月租: 350元其

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