Regex visualizer & explainer

Enter a regex pattern and a Test string to see real-time Match visualization and detailed explanations.

Regular Expression
//i
Test string
Flags
Match visualization
The cat says meow.
1 match found
Explanation
/i

Flags

Enables case-insensitive matching.

( )

1st Capturing Group

Matches and captures the expression inside. The captured value can be referenced as \1 or $1.

\s

Whitespace Character

Matches any whitespace character (space, tab, newline, etc.).

( )

2nd Capturing Group

Matches and captures the expression inside. The captured value can be referenced as \2 or $2.

\s

Whitespace Character

Matches any whitespace character (space, tab, newline, etc.).

( )

3rd Capturing Group

Matches and captures the expression inside. The captured value can be referenced as \3 or $3.

Match details
Match 1Index: 4
Full:cat says meow
Group 1:cat
Group 2:says
Group 3:meow