Test patterns with live highlights and groups. Runs entirely in your browser — nothing you paste is sent anywhere.
6 answers to what people ask most about the Regex Tester.
Enter the pattern, paste some text, and matches are highlighted instantly. The panel title shows the match count, and a table lists every match with its position.
JavaScript (ECMAScript), the same engine your browser and Node.js use. Patterns written for PCRE, Python or Java can behave differently, for example in lookbehind and named group syntax.
g finds all matches instead of the first, i ignores letter case, m makes ^ and $ match at each line, s lets the dot match line breaks and u turns on full Unicode handling.
The g flag is off. Without it the tester shows the first match only, just like a plain match call in JavaScript. Turn on g to see them all.
Wrap part of the pattern in parentheses. Each group gets its own column in the Matches and groups table, and a group that did not take part in a match shows a dash.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue