Re: preg_match and multibyte
| From: | Merlin Morgenstern | Date: | Thu, 09 Apr 2009 14:41:47 +0000 |
| Subject: | Re: preg_match and multibyte | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291294@lists.php.net to get a copy of this message | ||
tedd wrote:
At 4:18 PM +0200 4/9/09, Merlin Morgenstern wrote::-) sorry about my spelling. Chinese. e.g.: 月租: 350元其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:That's simple, there's no "chines" characters in Unicode. Cheers, :-) teddpreg_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