Back to Tools

Regex Visualizer

Interactive regex testing with visual state machine diagrams

Regex Pattern

//g

Flags

Quick Tips

. - Any character

* - Zero or more

+ - One or more

? - Optional

\d - Digit

\w - Word char

Test Text

No input

Enter a regex pattern to visualize state machine

Matches

0 matches0 groups

No matches found. Enter a pattern and test text.

Templates

Export Code

const regex = //g; const text = 'your test text here'; const matches = text.match(regex); console.log(matches);