Home / Tools / Regex Tester

Regex Tester

Test JavaScript regular expressions live. Matches are highlighted in your text and listed with their positions and capture groups.

Real-time testing
Match highlighting
g / i / m flags
Capture groups

Regular expression

/ /
Pattern
No pattern
Flags
None

Test string

Highlights update as you type. Ctrl K clears the text.

Matches

0 matches

Enter a regex pattern and a test string to see matches.