Regex Tester
Test your regular expressions against sample text with real-time highlighting of matches. Supports global, case-insensitive, and multiline flags with match group details.
//
Contact us at [email protected] or [email protected] for more info.
| # | Match | Index | Groups |
|---|---|---|---|
| 1 | [email protected] | 14 | $1: hello$2: example.com |
| 2 | [email protected] | 35 | $1: support$2: devtoolkit.dev |
使用说明
- 输入您的正则表达式模式并选择标志(g, i, m)。
- 粘贴或输入测试文本,实时查看高亮匹配结果。
- 根据匹配详情调整模式,直到结果正确。
- 将最终的正则表达式复制到您的代码中使用。
常见问题
g, i, m 标志分别代表什么?
g = 全局匹配(查找所有匹配项),i = 忽略大小写,m = 多行模式(^ 和 $ 匹配行首行尾)。
这对于敏感数据安全吗?
安全。匹配过程完全在您的浏览器本地运行,我们不会发送您的文本到任何服务器。