Regex Tester

Real-time regex testing with match highlighting

Regex Tester is a free online Text tool. Real-time regex testing with match highlighting Related terms: regex · regexp · 正则 · 测试 · 匹配. Use it on this page without signing in.

//
匹配高亮3 处匹配
联系我:alice@example.combob@test.org,勿用 admin@site.com.cn
捕获组列表
#位置完整匹配捕获组
14alice@example.com1: alice2: example.com
224bob@test.org1: bob2: test.org
340admin@site.com1: admin2: site.com
Help

使用说明

  1. 在「正则表达式」输入框填写模式(无需两侧斜杠)
  2. 在下方文本框粘贴待匹配文本
  3. 勾选修饰符:g 全局、i 忽略大小写、m 多行
  4. 匹配结果实时高亮,并显示匹配数量和捕获组

常见问题

  • 数据会上传吗? 全程浏览器本地处理,不发送任何数据
  • 支持哪种引擎? 使用 JavaScript 原生 RegExp,部分高级特性(如反向引用、命名组)视浏览器而定
  • 正则报错? 会显示语法错误提示,请检查括号、转义是否正确

补充说明

  • 部分语言(Python、Go、Java)的正则语法与 JS 略有差异,迁移时请注意

More Text

View all

FAQ about Regex Tester

What can Regex Tester do?

Regex Tester is a Text tool. Real-time regex testing with match highlighting You can finish the job on this page.

Who should use Regex Tester?

Anyone handling regex · regexp · 正则 · 测试 · 匹配 who does not want to install desktop software can use Regex Tester in the browser.

Is Regex Tester safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into Regex Tester just because you used it.

What similar tools exist?

Related tools in the same Text group are listed at the bottom of this page.