Test regular expressions and see matches live.
实时测试正则表达式,查看匹配数量与命中内容,方便调试抓取与替换规则。
A regex tester runs your regular expression against sample text and highlights every match live, so you can iterate on a pattern without editing code. It supports flags for case-insensitivity, multiline and global matching, shows capture groups, and reports syntax errors as you type. All matching runs locally in your browser.
正则测试器用你的正则表达式实时匹配示例文本并高亮所有结果,让你不写代码就能调好 Pattern。它支持忽略大小写、多行、全局等标志位,展示捕获组,并在输入时即报告语法错误。匹配全部在浏览器本地执行。
JavaScript regular expressions, as implemented by your browser. Most Perl-compatible patterns work unchanged, but a few advanced features differ between engines.
JavaScript 正则,即你浏览器的实现。大多数 Perl 兼容写法可直接使用,但少数高级特性在不同引擎间有差异。
Check the flags. Without the global flag only the first match is reported, and without case-insensitive matching the case must match exactly. Also confirm you did not include the surrounding slashes.
先看标志位:不加全局只报第一个匹配,不开忽略大小写则大小写必须一致;再确认没有把两侧斜杠一起粘进去。
Parentheses in a pattern create groups that capture the matched substrings. They are listed separately so you can see exactly which part of the match each group caught.
表达式中的圆括号会捕获匹配到的子串,工具会单独列出,让你看清每组到底抓到了哪一部分。
No. Matching runs in your browser, so logs and data containing sensitive values stay on your machine.
不会。匹配在浏览器内执行,含敏感值的日志和数据留在本机。
Format, validate and minify JSON — Chinese-safe, runs in your br…
格式化、校验并压缩 JSON,支持中文与错误定位。全程在浏览器本地完成。…
Encode or decode Base64 text with UTF-8 and URL-safe support.…
对文本进行 Base64 编码或解码,支持 UTF-8 中文与 URL 安全字符…
Percent-encode or decode URLs, params and text.…
对网址、参数或文本进行 URL 百分号编码与解码,方便调试接口与链接。…
Generate MD5, SHA-1, SHA-256 or SHA-512 hashes.…
用 MD5、SHA-1、SHA-256 或 SHA-512 为文本生成哈希值,常…
Generate random UUID v4 identifiers.…
一键生成多个随机 UUID v4,用于主键、追踪 ID 与测试数据。…
Decode a JSON Web Token locally, no upload.…
在浏览器本地解码 JSON Web Token 的 Header 与 Paylo…