Regex 解析测试器

实时高亮匹配结果,解释正则语义,并生成示例字符串

/ /
0 个匹配
匹配结果将在此处高亮显示。
暂无匹配。
  • 模式解释将在此处显示。

                

如何使用

第 1 步

输入模式

输入正则表达式并选择相关标志。

第 2 步

测试文本

实时查看高亮的匹配结果和捕获组。

第 3 步

解释与生成

查看模式解释并生成示例字符串。

常见问题

Does the regex tester support flags like g, i, m, s and u?

Yes. You can toggle global, ignore case, multiline, dotAll, unicode, and sticky flags in the tester.

How does regex explanation work?

The parser reads your pattern token by token and generates plain-language explanations for anchors, classes, groups, and quantifiers.

Can I generate example strings from a regex?

Yes. The sample generator creates a representative string using your current pattern so you can quickly sanity-check intent.