正则表达式容器和帮助函数,以简化正则表达式的使用和部署。
regexif的Python项目详细描述
目录
关于项目
这个包包含一些用于构建/使用正则表达式的有用函数和类。在
入门
先决条件
- Python 3.7+
安装
使用pip安装:
pip install regexify
使用
有关用法的示例,请参见测试文件。在
模式Trie
将多个术语编译成一个模式。在
importrefromregexifyimportPatternTriedata=['there','hi','python','pythons','hiya']trie=PatternTrie(*data)pat=re.compile(trie.pattern)
版本
使用SEMVER。在
见https://github.com/dcronkite/regexify/releases。在
路线图
请参阅open issues,以获得建议的特性(和已知问题)的列表。在
贡献
您所做的任何贡献都将受到的高度赞赏。在
- 把项目分成两半
- 创建您的功能分支(
git checkout -b feature/AmazingFeature
) - 提交更改(
git commit -m 'Add some AmazingFeature'
) - 推到分支(
git push origin feature/AmazingFeature
) - 打开拉取请求
许可证
根据麻省理工学院的许可证分发。在
有关详细信息,请参见LICENSE
或https://dcronkite.mit-license.org。在
联系人
请使用issue tracker。在
致谢
- 项目
标签: