Write a pattern, watch every match light up as you type. See capture groups, run replacements, and read a plain-language breakdown of what your pattern actually does.
边写边看匹配结果高亮。捕获组列表、替换预览、还有一份"这条正则到底在干什么"的白话拆解。
Pattern
正则表达式
//
readymatches匹配数: 0time耗时: 0 msgroups捕获组: 0
Tip: patterns run against the whole document instantly while you type. Everything is local to this page.
提示:输入时全文实时匹配。所有计算都在本页面完成。
Test string
测试文本
Live matches
实时匹配高亮
Match & capture groups
匹配列表与捕获组
No matches.
没有匹配。
What this pattern does
这条正则在做什么
Replace preview
替换预览
→
Use $1$2 for capture groups, $& for the whole match, $<name> for named groups.用 $1$2 引用捕获组,$& 表示整个匹配,$<name> 引用命名组。
Pattern library — click to load
常用正则库 —— 点击直接载入
Built by rlova — one file, no dependencies, works offline.rlova 出品 — 单文件、零依赖、离线可用。See all demos →看全部 Demo →