🧰 工具大全 ToolHub

正则测试器Regex Tester

实时调试正则表达式:匹配结果直接在文本里高亮标出,每个捕获分组单独列表,替换效果同步预览。写爬虫、做数据清洗、校验表单之前,先在这里把表达式跑通。Debug regular expressions live: matches are highlighted right in your text, every capture group is listed separately, and replacement output previews instantly. Get the pattern right here before using it in scrapers, data pipelines or form validation.

修饰符Flags:
常用模式Common patterns:

匹配高亮Match highlighting

匹配列表Match list

替换预览Replacement preview

说明Notes

这是浏览器原生 JavaScript 正则(ECMAScript 语法),和 Python、Java 的正则有个别差异(如命名分组写法、后行断言支持),上线前请以目标语言实测为准。This uses the browser's native JavaScript regex (ECMAScript syntax), which differs slightly from Python/Java regex (e.g. named groups, lookbehind support) — verify in your target language before shipping.