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.

Runs in your browser v1.0.0

Regular expression

live
Flags
Examples

Write the pattern without surrounding slashes. Use (?<name>…) for a named group and colour-coded numbers for plain groups.

Sample text

editable

Used only in this page to show matches; it is never uploaded.

Capture groups

0 groups

Matches

no matches

How 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.