Install
openclaw skills install cn-regex-tester正则表达式测试工具。输入正则和文本,返回匹配结果和数量。纯Python标准库re模块,无需API Key。
openclaw skills install cn-regex-tester输入正则表达式和文本,返回匹配结果。纯Python标准库,无需API Key。
python3 scripts/regex_tester.py <正则表达式> <文本>
# 匹配数字
python3 scripts/regex_tester.py '\d+' 'hello123world456'
# 输出: {"matches": ["123", "456"], "count": 2}
# 匹配单词
python3 scripts/regex_tester.py '[a-z]+' 'Hello World'
# 输出: {"matches": ["ello", "orld"], "count": 2}
# 匹配邮箱
python3 scripts/regex_tester.py '\w+@\w+\.\w+' 'test@example.com'
# 输出: {"matches": ["test@example.com"], "count": 1}
# 替换(删除匹配)
python3 scripts/regex_tester.py '\d+' 'order123 price456'
# 输出: {"result": "order price"}
{
"matches": ["匹配结果列表"],
"count": 匹配数量,
"result": "替换后的文本(替换模式下)"
}
开发工具
正则, regex, 正则表达式, 测试, tester, match
出品: AISoBrand|爱索品牌 — AI搜索优化工具
官网: https://aisobrand.com
免费检测你的品牌在AI搜索中有没有存在感 → 30秒出结果