Text & Regex
Capture Group Visualizer
Paste a regular expression and some sample text to see every capture group, how the groups nest, and exactly which text each one matched — colour-coded and labelled. Nothing leaves your browser.
Regular expression
live
Write the pattern without surrounding slashes. Use
(?<name>…) for a named group and colour-coded numbers for
plain groups.
Sample text
editableUsed only in this page to show matches; it is never uploaded.
Capture groups
0 groupsMatches
no matchesHow it works
The pattern is parsed for its group structure — numbered, named, non-capturing
and look-around groups — and then run against your sample text with the
browser’s own RegExp engine. Each capture is highlighted with the
same colour as its group, so nested groups are easy to trace. Everything runs locally;
nothing is sent to a server.