Regex Tester

Test a regular expression against your text with live match highlighting and groups.

100% private — runs entirely in your browser. Your data is processed on your device and never sent to the internet.
/ /

About this tool

This free regex tester runs a JavaScript regular expression against your text and highlights every match as you type — with a match count and the capture groups from the first match. Toggle the common flags (global, ignore case, multiline, dotall) with a click.

Everything runs in your browser — nothing is uploaded.

Features

  • Live match highlighting as you type
  • Flags: global (g), ignore case (i), multiline (m), dotall (s)
  • Match count and capture groups
  • Clear error message for an invalid pattern

How to use it

  • Enter a pattern between the slashes
  • Choose flags — or type them directly
  • Paste your test text — matches highlight instantly
  • Read the results — match count and capture groups below

More tools

View all