Regex Tester
Matches
Test a JavaScript regular expression against any text — matches highlight live, and every match lists its numbered and named capture groups. Uses your browser's native regex engine, not a separate flavor to translate mentally.
How it works
- Type your pattern and flags
- Paste or type test text — matches highlight instantly
- Every match and its capture groups are listed below
Frequently asked questions
Which regex flavor does this use?
JavaScript's native RegExp — the same engine your browser and Node.js use, so what you test here behaves the same in your code.
Is my regex or test text sent anywhere?
No — matching runs entirely in your browser via the native RegExp engine.
Can I see capture groups?
Yes — every match and its numbered/named capture groups are listed below the highlighted text.
Related tools
From the blog
Update history
- 2026-08-30 Added: a cover image (magnifying glass over highlighted text with regex delimiter marks) — used as the card thumbnail, social share image, and blog title image.
- 2026-08-30 Launched: live JavaScript regex tester (no button) — highlights matches in the test text, lists every match with numbered/named capture groups, entirely client-side.