ToolPilot

正则表达式测试器

免费浏览器工具,方便快速且私密地处理内容。

测试 JavaScript 正则表达式,并查看匹配内容和位置。 常用标志包括 g、i、m 和 u。测试带有短暂超时,以限制耗时过长的匹配。

Regex Tester

Enter a regular expression and sample text. Matches update automatically and appear below in high-contrast white text.

Global matching is enabled automatically so every match is shown.

Highlighted text

3 matches

Order 123 has 2 items and costs 45 dollars.

Match details

  1. Match 1: 123Position 6 · length 3
  2. Match 2: 2Position 14 · length 1
  3. Match 3: 45Position 32 · length 2

常见问题

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

测试 JavaScript 正则表达式,并查看匹配内容和位置。

正则表达式测试器 提供哪些选项?

常用标志包括 g、i、m 和 u。测试带有短暂超时,以限制耗时过长的匹配。

使用正则表达式测试器时,我的输入会被上传吗?

文本在浏览器本地处理,此工具不会将其发送到 ToolPilot 服务器。