Skip to content

Regex Tester — Live matches & groups

JavaScript Regex Tester

Build and debug regular expressions against real text. Matches highlight as you type, capture groups are listed, and you can preview replacements with $1 and $<name>.

Loading tool…

How to use Regex Tester

  1. Enter a pattern and flags.
  2. Paste a test string.
  3. Inspect matches and groups, or try a replacement.

Features

  • Live highlighting
  • Numbered and named groups
  • Replace with $1 and $<name>

Popular uses

  • Build and debug validation patterns
  • Test find-and-replace before running it on code
  • Extract values from logs
  • Learn regex with live feedback

Frequently asked questions

Which regex flavour does it use?

Your browser's JavaScript RegExp engine.

Does it support named groups?

Yes. Numbered and named groups are listed for every match, and replacements can use $1 or $<name>.

Is my text uploaded?

No. Processing happens in your browser tab; the file never leaves your device.