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.
联系我:alice@example.com 或 bob@test.org,勿用 admin@site.com.cn
| # | 位置 | 完整匹配 | 捕获组 |
|---|---|---|---|
| 1 | 4 | alice@example.com | 1: alice2: example.com |
| 2 | 24 | bob@test.org | 1: bob2: test.org |
| 3 | 40 | admin@site.com | 1: admin2: site.com |
使用说明
- 在「正则表达式」输入框填写模式(无需两侧斜杠)
- 在下方文本框粘贴待匹配文本
- 勾选修饰符:g 全局、i 忽略大小写、m 多行
- 匹配结果实时高亮,并显示匹配数量和捕获组
常见问题
- 数据会上传吗? 全程浏览器本地处理,不发送任何数据
- 支持哪种引擎? 使用 JavaScript 原生 RegExp,部分高级特性(如反向引用、命名组)视浏览器而定
- 正则报错? 会显示语法错误提示,请检查括号、转义是否正确
补充说明
- 部分语言(Python、Go、Java)的正则语法与 JS 略有差异,迁移时请注意
More Text
View allWord Count
Count characters, words and lines, CJK and Latin separately
Text Deduplicator
Deduplicate lines, remove empty lines, trim and sort
Case Converter
Convert case, full/half width, camelCase / snake_case / kebab-case
Simplify ⇄ Traditional
Convert between simplified and traditional Chinese
Text Diff
Compare two texts line by line
Markdown to HTML
Convert Markdown to HTML with live preview and export
Markdown Stripper
Strip Markdown markers, keep plain text and line breaks
Encrypt / Decrypt
Base64, URL, Unicode, Morse and more codecs
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.