每日一句 ( 202525 )  

Life doesn't get easier or more forgiving; we get stronger and more resilient.

生活從未變得更加輕松或?qū)捜荩俏覀冊(cè)谝稽c(diǎn)一點(diǎn)變強(qiáng)、變堅(jiān)韌。———— Steve Maraboli

php正則匹配中文漢字-正則表達(dá)式匹配中文

更新: $str = '這是中文'; // 注意 php不支持\u寫法 preg_match('/[\x{4e00}-\x{9fa5}]+/u', $str, $matchs); print_r($matchs); ==================以下忘了是寫的什么玩意兒================== 最近學(xué)習(xí)正則,在百度搜php常用正則,80%都是采集的。其中開頭都介紹了個(gè)匹配中文的方法,試了一下,不能用(汗?。。。_@個(gè)方法也是搜集來(lái)的,可以正確匹配中文: