Regex Tester

Live-test your regular expressions with flags and highlighted matches.

Pattern & Flags
new RegExp(pattern, flags)
const re = new RegExp("your-pattern", "g");

const matches = Array.from(text.matchAll(re));
// matches: RegExpMatchArray[]

const ok = re.test(text);
// ok: boolean

const replaced = text.replace(re, "…");
Test Text

How to use

  1. Enter your regex pattern and test text.
  2. Enable flags like g, i, m as needed.
  3. Review matches and capture groups in real time.

Features

Related tools