Regex Tester is a free strings & text tool that runs entirely in your browser — live match highlighting, groups, flags. No upload, no account, no limits.
A live regular-expression tester. As you edit the pattern, matches are highlighted inline in your test string, every match and its capture groups are listed with positions, and a running count shows how many matches were found.
All five JavaScript flags — global (g), ignore-case (i), multiline (m), dotall (s) and unicode (u) — are one-click toggles, and an optional replacement field with $1/$2 references previews the substituted result.
g, i, m, s and u — toggle each independently. The engine is the browser's native JavaScript RegExp.
Yes. Every match lists its numbered groups ($1, $2, …) and the index where it occurred.
Yes — add a replacement string with $1/$2 references and the substituted output appears live.
Every calculation happens on this page, in your own browser. Your input is never sent to a server, never logged and never used for training — which also means the tool keeps working when you are offline.