a11y.skipToMainContent
1

Regex 批量测试器

测试您的正则表达式, 一次对多个字符串 。 见匹配,抓取组,并突出显示每个字符串的结果.

Regex Batch Tester
Test Strings (one per line)
More options
Was this tool helpful?
Send output to:
Advertisement

How to use Regex Batch Tester

  1. 输入正则表达式 .
  2. 添加测试字符串(每行一个或逗号分隔).
  3. 查看每个字符串的匹配结果 .
  4. 见突出显示的匹配和被捕获的群体.

{姓名}是什么来着?

一个 regex 批量测试器允许您同时对多个输入字符串测试正则表达式. 它显示哪个字符串匹配, 突出显示匹配的部分, 并显示捕获的组。

这个工具对于对照一组实例字符串测试regex模式以确保它们正确匹配是十分宝贵的. 它有助于识别您模式中的假阳性和假阴性。

Advertisement

FAQ

我能测试多少弦?
虽然没有硬限制,但性能最好一次使用1000个下弦.
我能看看捕捉组吗?
是——工具显示每个匹配字符串的所有捕获组.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement