如何使用PHP Unicode代码点转义语法作为preg_match函数的模式?

时间:2019-03-25 19:00:13

标签: php unicode preg-match

我想使用preg_match函数将我的字符串测试为某种模式。 如何使用Unicode codepoint escape syntaxpattern定义preg_match

例如,我试图将Unicode字符用于这样的preg_match('/(\u{0020}){0,3}/',' string to test...')这样的SPACE,但是PHP无法像这样编译它。因此,有没有办法以某种方式在0020的{​​{1}}内使用Unicode代码(例如pattern)?

0 个答案:

没有答案