文本工具

正则测试器

Test JavaScript regular expressions, flags, match indexes, and capture groups locally in your browser.

表达式

实时测试 JavaScript 正则表达式。

匹配结果

2 个匹配

gi
匹配 #1索引 8
alex@example.com
匹配 #2索引 28
ops@zptools.com

功能亮点

Live Matching

Update the expression or sample text and see matches immediately.

Flag Controls

Toggle global, case-insensitive, multiline, dotAll, unicode, and sticky flags.

Capture Groups

Inspect capture group output for each match.

Useful Presets

Start from common patterns like email, URL, IPv4, and hex colors.

Index Details

Each result includes the match number and starting index.

Local Only

Your regex and test text are evaluated directly by the browser.

常见问题

The tool uses JavaScript RegExp in your browser, so results match modern browser JavaScript behavior.

The UI adds global matching internally so it can list all matches, while still showing the flags you selected.

No. Matching happens locally in the browser.

持续增长的高效、隐私优先开发者工具集合。所有工具都在浏览器中运行,数据不会离开你的设备。

工具

JSON 解析器JSON Schema 校验器JSON 转换器JSON 转 TypeScriptOpenAPI 查看器代码格式化SQL 格式化cURL 转换器时间戳转换器Cron 解析器URL 编码器二维码工具IP 与 CIDR 计算器Gzip 与 Deflate 工具JWT 解码器JWT 验签与 JWK 工具哈希生成器密码与 TOTPBase64 编码器UUID 生成器图片元数据图片压缩Tiny 图片压缩器图片工具箱 Pro屏幕录制正则测试器文本 DiffMarkdown 与 Mermaid 预览颜色与对比度工具

法律

隐私政策服务条款

© 2026 ZPTools. 保留所有权利。