We built a regex tester so you can try patterns before putting them in code. Everything runs locally in your browser.

How the regex tester works

  • Enter your regex pattern in the top box.
  • Paste sample text in the bottom box.
  • Matches are highlighted as you type.
  • Turn flags on or off: global, case-insensitive, multiline, and more.
  • See capture groups and try replace previews.

Cheat sheet

The cheat sheet lists common tokens—anchors, character classes, quantifiers, and lookarounds—in one page you can keep open while testing.

Regex tester showing highlighted matches in sample text.
Live highlights and capture groups as you edit the pattern.