UTF-8汉字正则匹配
摘要:正则匹配UTF-8汉字,JS以及PHP版:/[\u4e00-\u9fa5]+/.test('JS匹配UTF-8汉字');preg_match('/^[\x{4e00}-\x{9fa5}]+/u', 'PHP匹配UTF-8汉字', $m);
阅读全文
posted @ 2013-06-26 17:15
posted @ 2013-06-26 17:15
posted @ 2013-06-21 16:12
posted @ 2013-06-15 13:27
posted @ 2013-06-03 11:19