Regex Tester

Test regular expressions against sample text.

Processed on your device. Your files never leave your browser.
//g

About Regex Tester

The regex tester lets you build and debug JavaScript regular expressions with live match highlighting. Toggle flags, see every match with its capture groups, and spot exactly what your pattern matches in your sample text.

How to use

  1. 1Type your regular expression in the pattern field.
  2. 2Toggle flags like global, ignore case or multiline.
  3. 3Paste your test string below.
  4. 4See matches highlighted live, with a list of matches and capture groups.

Features

  • Live match highlighting as you type.
  • All JavaScript flags: g, i, m, s, u, y.
  • Match list with indexes and capture groups.
  • Clear, specific error messages for invalid patterns.

Frequently asked questions