Regex Tester
Test a regular expression against text and see every match.
How to use
Type your pattern (without the slashes), toggle the flags you need, and paste your test text. Matches and capture groups appear live below.
About this tool
Write a regular expression, toggle flags, and test it against any text — matches and their capture groups are listed live. Great for debugging patterns before you paste them into code. It runs entirely in your browser using the native JavaScript regex engine.
What you can use Regex Tester for
- Debug a regex before using it in code
- Extract capture groups from sample text
- Check that a validation pattern matches
- Count how many times a pattern occurs
Frequently asked questions
Which regex flavor is used?
The native JavaScript (ECMAScript) regular-expression engine, so results match what you'll get in Node.js and browser code.
What do the flags mean?
g = find all matches, i = case-insensitive, m = ^ and $ match line boundaries, s = dot matches newlines, u = full Unicode. Toggle them with the checkboxes.
Is my pattern or text uploaded?
No — everything is evaluated locally in your browser.