正则表达式 – PCRE是否正确支持unicode字符串?

前端之家收集整理的这篇文章主要介绍了正则表达式 – PCRE是否正确支持unicode字符串?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
PCRE是否正确支持unicode字符串?

解决方法

是的,它确实(虽然可能不是Unicode 6).从 man page

The current implementation of PCRE corresponds approximately with Perl 5.12,including port for UTF-8 encoded strings and Unicode general category properties. However,UTF-8 and Unicode support has to be explicitly enabled; it is not the default. The Unicode tables correspond to Unicode release 5.2.0.

猜你在找的正则表达式相关文章