OneKitTools logoOneKitTools
返回开发者

正则表达式测试器

使用实时高亮测试正则表达式

关于 正则表达式测试器

Test your regular expressions in 实时 with match highlighting and capture group extraction.

如何使用 正则表达式测试器

  1. 1输入你的regular expression in the "Regular expression" field。
  2. 2添加你的 flags in the dedicated field: g (global), i (case insensitive), m (multiline)…
  3. 3粘贴你的 test string — matches are highlighted immediately.
  4. 4审查the match list with their position and capture groups。
  5. 5Starter+:将所有匹配项导出为 .txt 文件。

提示

  • Start by testing with the g flag to capture all occurrences in 文本.
  • Capture groups (parentheses) are displayed separately — useful for extracting sub-patterns.
  • If your regex matches nothing, check the escaping of special characters: dots, stars and brackets must be escaped with \.

相关工具

相关指南

OneKitTools 团队更新于 2.21.4