PyMatch 一款输出正则表达式辅助工具

华盟原创文章投稿奖励计划

pyMatch旨在帮助您以简单的方式生成格式化和有效的输出。他使用Regex来整理和验证数据,然后您可以使用捕获的组生成格式化的输出。

安装
git clone https://github.com/rfunix/PyMatch.git PyMatch-dev
用法
要获取有关项目的基本选项和信息列表:
python pymatch.py?? -h
使用示例:
To use the groups obtained in the use Regex -g (Group number).
python pymatch.py -f "teste.txt" -p "^(011)(\d{4,5})(\d{4})$" -g "((1))(2)-(3)"
cat teste.txt | python pymatch.py -p "^(011)(\d{4,5})(\d{4})$" -g "((1))(2)-(3)"
文章来源及下载

https://github.com/rfunix/PyMatch

本文原创,作者:congtou,其版权均为华盟网所有。如需转载,请注明出处:https://www.77169.net/download/242400.html

发表评论