Toolmanor

Regex tester

Type a regular expression and some text to see matches highlighted instantly, with capture groups and a replace preview — JavaScript regex syntax, free.

How to test a regex

  1. Type the pattern in "Pattern" and turn on the flags you need (g, i, m, s, u).
  2. Paste the text to test on the left; matches are highlighted on the right as you type.
  3. Check every match with its groups; turn on "Replace" to try a replacement with $1, $2…

Frequently asked questions

Related tools