Regex Tester
Write a regular expression, paste your test text, and see every match highlighted instantly — with capture groups and a live match count.
How the regex tester works
It uses your browser's built-in JavaScript regular-expression engine, so what you see here is exactly how your pattern will match in practice.
Write a pattern
Type your regular expression and flip the flags you need — g for all matches, i to ignore case, and more.
Paste your text
Drop in the string you want to search. Every match lights up in context the instant you type.
Inspect the groups
See a numbered list of matches with each capture group (and named groups), plus the total match count.
Flags, quick reference
g global finds every match instead of just the first.
i ignore case makes letters case-insensitive.
m multiline lets ^ and $ match at line breaks.
s dotall lets . match newlines too.
u unicode enables full Unicode and code-point escapes like \u{1F600}.
Invalid patterns are caught and explained rather than throwing, and runaway patterns are stopped before they can freeze the page — so you can experiment freely.
Private by design. Your pattern and test text never leave your device — all matching runs entirely in your browser using built-in JavaScript. Nothing is uploaded or stored.
Frequently Asked Questions
What flavour of regular expressions does this use? ▼
What do the flags g, i, m, s and u do? ▼
^ and $ match at line breaks, s lets . match newlines, and u turns on full Unicode support.Can I see my capture groups? ▼
Do I need to add the slashes and flags to my pattern? ▼
What happens with an invalid or very slow pattern? ▼
(a+)+) are caught and paused so the page never freezes.