Python regex matching Unicode properties

前端 未结 6 1571
我寻月下人不归
我寻月下人不归 2020-11-22 14:49

Perl and some other current regex engines support Unicode properties, such as the category, in a regex. E.g. in Perl you can use \\p{Ll} to match an arbitrary l

6条回答
  •  日久生厌
    2020-11-22 15:13

    The regex module (an alternative to the standard re module) supports Unicode codepoint properties with the \p{} syntax.

提交回复
热议问题