Regex Tester
v1.0The Regex Tester lets you write a pattern, watch it match your sample text as you type, and see exactly what it captured.
The pattern sits in a /…/flags field, and every match is highlighted in place in the editor below. Toggle the flags g, i, m, s, u, y (and v where your browser supports it), each with a one-line explanation. If a pattern won't compile, the error message appears inline and the last good matches stay on screen, dimmed.
Without g you get only the first match, like String.match. With g every match is listed, up to 5,000. Each result shows its character range, the full match and every numbered or named capture group, each with a copy button. Click a match to select it in the text. A group-highlighting toggle shades each captured part, and adjacent matches alternate shade.
If a pattern takes more than two seconds, for example because of nested quantifiers like (a+)+, the tool stops it and tells you the pattern is too slow, so the page never freezes.
Replace mode adds a replacement field with a live preview, using $1, $<name>, $& and $$, with a short reference alongside. Presets for email, URL, IPv4, ISO date, UUID, number, whitespace and HTML tag fill in the pattern, and a sample if your test area is empty. A collapsible cheatsheet covers the core syntax.
Share the session as a link with the pattern, flags, replacement and test text in the URL. Your pattern, flags, replacement and options are remembered between visits, but the test text is never saved. Everything runs on your device.