更強大的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

相關文章
相關標籤/搜索