PyMatch 一款输出正则表达式辅助工具
工具
6年前
0
3.85K
0
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