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
/iFlags
Enables case-insensitive matching.
( )1st Capturing Group
Matches and captures the expression inside. The captured value can be referenced as \1 or $1.
\sWhitespace 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.
\sWhitespace 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 meowGroup 1:
catGroup 2:
saysGroup 3:
meow