Regex Tester

Test regular expressions live - highlight matches, inspect capture groups and preview replacements. Runs in your browser.

0 matches

#MatchGroupsIndex

What is a Regex Tester?

A regular expression (regex) is a pattern used to search and manipulate text. This tester lets you build a pattern, toggle flags, and instantly see what it matches in your sample text, inspect the capture groups, and preview a find-and-replace - all evaluated locally in your browser using JavaScript's RegExp engine.

How to use it

  • 1. Type your pattern and choose flags (global, ignore case, multiline, …).
  • 2. Enter a test string - matches are highlighted live and listed with their groups.
  • 3. Add a replacement (with $1, $2, $&) to preview the result.