Regex Tester
Test regular expressions with live match highlighting and group details.
Runs locally · Nothing uploaded
Loading tool…
Advertisement
About Regex Tester
Write a JavaScript regular expression, toggle flags, and see matches highlighted in your test text as you type. Capture groups — numbered and named — are listed per match, and a replacement mode previews substitution output including $1-style references. Patterns run locally with safeguards against runaway inputs.
Related tools
Text & RegexRuns locally in your browser.Find and ReplaceReplace text across a document, with optional regex and case options.Text & RegexRuns locally in your browser.Extract Matching LinesKeep only the lines that contain a substring or match a regex.Text & RegexRuns locally in your browser.Text DiffCompare two texts and highlight added, removed, and changed lines.