📦 rex-plus (for humans)
Plus version of re
Installation
pip install -i https://mirrors.aliyun.com/pypi/simple/ --extra-index-url https://pypi.org/simple/ rex-plus
Example
import rex_plus
rex_plus.sub('(限行)灯', ['线型'], '卧室有一盏限行灯')
rex_plus.sub('(我是).*(限行)灯', ['卧室', '线型'], '卧室有一盏限行灯')
rex_plus.sub('(?:卧室)的(限行)灯', ['线型'], '卧室的限行灯')
rex_plus.sub('(?:(我是)的)(限行)灯', ['卧室', '线型'], '卧室的限行灯')
rex_plus.search_all(r"\d", "__a1bb2ccc3")
To Do
- Be the best version of you.
More Resources
License
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.