cn-regex-tester
v1.0.0正则表达式测试工具。输入正则和文本,返回匹配结果和数量。纯Python标准库re模块,无需API Key。
正则表达式测试器
输入正则表达式和文本,返回匹配结果。
用法
python3 scripts/regex_tester.py <正则表达式> <文本>
示例
python3 scripts/regex_tester.py '\\d+' 'hello123world456'→ 匹配[123, 456]python3 scripts/regex_tester.py '[a-z]+' 'Hello World'→ 匹配['ello', 'orld']python3 scripts/regex_tester.py '\\w+@\\w+\\.\\w+' 'test@example.com'→ 匹配邮箱
Version tags
latest
