正则表达式测试器 Members

测试 JavaScript 正则表达式,并实时高亮匹配结果。

This tool is available to registered members

Create a free account or sign in to use this tool. Registration is free and takes less than a minute.

Your data is processed in your browser and is not uploaded to our servers.

About the 正则表达式测试器

正则表达式测试工具会将样本文本中正则表达式的每个匹配位置高亮显示,列出捕获组,并预览查找和替换的结果。它使用带 g、i、m、s 和 u 标志的 JavaScript 正则表达式引擎。

How to use the 正则表达式测试器

  1. 请输入正则表达式。
  2. 选择国旗并输入测试文本。
  3. 查看比赛、分组及替补阵容预览。

Frequently asked questions

使用的是哪种正则表达式?

JavaScript(ECMAScript),即浏览器和 Node.js 中使用的版本。

它支持阿拉伯语吗?

是的。使用 u 标志时,可以使用 Unicode 类,例如 \p{L}。