views:

143

answers:

2

How do I do a regexp search against a Mandarin string?

A: 

In what language? In PHP, use UTF-8 and the /u modifier.

Greg
+2  A: 

No different that against any other string; of course it requires a language and a regexp library that correctly uses unicode for its strings and doesn't assume that a string is just a byte array interpreted as ASCII.

Michael Borgwardt