Regex Tester
Test a regular expression against sample text, live.
Pattern
Matches
About Regex Tester
Type a regular expression and some test text to see every match highlighted live, along with each match's captured groups. Everything runs in your browser.
Flags
Enter any combination of standard JavaScript regex flags (defaults to "gi" — global and case-insensitive) to control how the pattern matches.
How to use it
Enter a pattern, adjust flags if needed, and paste or type your test text. Matches highlight live as you edit either field.
Use cases
Build or debug a regular expression before dropping it into real code. Check whether a pattern matches the cases you expect it to. See exactly what a capture group extracts from sample text.
Limitations
Uses standard JavaScript regex syntax — patterns relying on features specific to another language's regex engine may not behave identically.
Does this run my pattern on a server?
No — matching happens entirely in your browser using standard JavaScript regex.
What do the default flags do?
"g" matches every occurrence instead of stopping at the first; "i" makes the match case-insensitive. You can change or remove either.
Is this actually free?
Yes.