首页
Tom Utilities

正则测试器

开发者实用工具

用示例文本测试正则表达式,查看每个匹配和捕获组。

使用方法

Testing a pattern

Enter a pattern and flags, provide sample text, and matches are highlighted as you type.

  1. Type the regular expression.
  2. Select flags such as global or case insensitive.
  3. Read the highlighted matches and groups.

常见问题

Which regex flavour is used?

The JavaScript RegExp engine, so it matches how your browser interprets patterns.

Can a pattern freeze the page?

A high match limit protects against runaway patterns and shows a warning if the limit is reached.