Write a regular expression and see every match and capture group highlighted live.
🔒 Runs in your browser.
How to use the regex tester
- Enter a pattern and flags.
- Paste test text.
- Review highlighted matches and groups.
Common flags
g finds all matches, i ignores case, m makes ^ and $ match line starts/ends, s lets . match newlines, u enables full Unicode.
Frequently asked questions
Which regex flavour is this?
JavaScript (ECMAScript).
Why no matches?
Check escaping – in this box, type \d not \\d.
Can it handle lookbehind?
Yes, in modern browsers.