Browser support tables — check before you code and save yourself rework
regex101
An online regex debugger that explains matches in real time
Content updated · 2026-09-07
What is it · 它是什么
What is regex101?
regex101 is a popular online regex debugger: write the pattern on the left, paste test strings on the right, watch matches highlight in real time, and read a natural-language breakdown of what every part of your pattern does. Regex is five minutes to write and two hours to understand — this tool compresses the two hours into ten seconds.
How to use · 怎么用
How to use regex101
- Paste your pattern and real sample data, then read the Explanation panel to confirm what each token means.
- When matching goes wrong, open the debugger and step through to see where it derails.
- Switch the flavor (JavaScript, Python, PCRE and more) when porting across languages — the same pattern can behave differently in each.
- Generate a share link when you're done for your own archive.
Key features · 核心特点
Key features of regex101
- Live match highlighting — every character change reflects instantly
- Token-by-token plain-language explanations make reading other people's regex painless
- Flavor switching prevents porting surprises
- Step debugging and shareable permalinks cover both troubleshooting and archiving
Related sites
A color palette generator — press one key, get a full scheme
A free web font library for both CJK and Latin typefaces