Regex Tester
Test regular expressions in real-time with match highlighting. See capture groups and learn regex patterns interactively.
//g
Tests regular expressions in real-time with match highlighting and capture group display.
How to Test Regular Expressions
- 1
Enter your pattern
Type your regular expression pattern in the pattern field. Special characters are highlighted.
- 2
Set flags
Choose regex flags: g (global), i (ignore case), m (multiline), s (dotAll), u (unicode).
- 3
Enter test string
Paste or type the text you want to test your pattern against.
- 4
View matches
See all matches highlighted in your test string in real-time.
- 5
Check capture groups
View captured groups for each match to verify your pattern extracts the right data.