Preg_match正则表达式可捕获所有语言字符

时间:2018-07-19 10:43:08

标签: php regex preg-match

当前,我正在使用preg_match来捕获逗号内的字符串,但是它几乎可以是所有语言字符。 例如

  

“ {” simpleText“:”تبصر   کریں“,” Endpoint“:{” 1002029_oeo0100dk“:{” createService“:” any   字符串“}},” simpleText“:”تریں“,”端点“:{” 1002029_oeo0100dk“:{” statusService“:”任何   字符串“}}}

我想抓住تبصر کریں

尝试了这个但没有成功的preg_match('/\"simpleText\":\"([\p{L}]+)\"/', $cresponse, $mfc);,因为在这句话之前也有很多simpleText个关键字。

0 个答案:

没有答案