Regex Tester
The Regex Tester lets you build and debug JavaScript regular expressions against real text with live feedback. Matches are highlighted as you type, with capture groups, positions and a full match list, so you can iterate quickly without a console.
Why use Regex Tester
- Live highlighting of every match in your test string.
- Capture groups, named groups and exact match positions.
- Toggle all flags — g, i, m, s, u, y — and see the effect instantly.
- Clear, immediate errors for invalid patterns.
How to use Regex Tester
- 1Enter a pattern. Type your regular expression in the pattern field (no slashes needed).
- 2Add a test string. Paste the text to match against; matches highlight live.
- 3Tune flags. Toggle g/i/m/s/u/y and review the matches, groups and positions below.