Skip to content

正则表达式测试器

用正则表达式匹配任意文本,支持全部标志(g/i/m/s/u/y)。查看每个匹配及其索引与捕获组,还有构建出的模式。100% 在浏览器中完成。

Validators & Testers
cosmodev ~/tools/regex-tester-
示例

输入测试字符串即可查看高亮匹配。

模式
/gi
//gi
标志
测试字符串
0 个匹配
无匹配。
Send to AI
Critique this regex for catastrophic backtracking and RE2 compatibility, then propose a stricter version with tradeoffs:

`//gi`

Matches found:
(none)