更强大的python正则表达式模块 -- regex

python内置的正则表达库re比较弱,并且彷佛在好几年里都没太大的变化。
这里介绍这个python模块regex,实现了更多方便好用的功能。html

好比:\p{han} 能够匹配汉字, \p{Latin} 能够匹配拉丁字母。至关简单,易记易用。python

更多的介绍请直接看:https://pypi.python.org/pypi/regexexpress

用pip 命令安装便可code

pip install regex

regex的源码托管在这里 : https://bitbucket.org/mrabarnett/mrab-regex/htm

参考资料:
http://www.regular-expressions.info/unicode.htmlip

2017-1-28 1:32:59 codegayunicode

相关文章
相关标签/搜索