正则表达式测试器
Test JavaScript regular expressions with local match highlighting, flags and capture group output. Everything runs locally in your browser.
/
/gi
就绪
Highlighted matches
Capture groups
| Match | Index | Full match | Groups |
|---|---|---|---|
| Capture groups appear after you test a pattern. | |||
JavaScript RegExp behavior
The tester uses the same browser RegExp engine your frontend JavaScript uses, so flags and syntax match real client-side code.
Capture group inspection
Review numbered groups, named groups and match positions without stepping through code or opening a console.
私有浏览器实用工具
Everything runs locally in your browser. Sensitive logs, tokens and sample payloads are not uploaded.
相关开发者工具
Frequently asked questions
我的正则表达式或测试文本是否已上传?
否。一切都在您的浏览器中使用 JavaScript RegExp 引擎本地运行。您的模式和文本不会发送到 Convertr 服务器。
此测试器使用哪种正则表达式风格?
此页面使用 JavaScript 正则表达式,与现代浏览器和 Node.js 使用的 RegExp 行为相同。
我可以检查捕获组吗?
是的。结果表列出了每个匹配项、编号的捕获组以及浏览器提供的命名捕获组。
支持哪些标志?
测试器支持常见的 JavaScript 标志,包括 g、i、m、s、u、y 和 d(如果您的浏览器可用)。