All Tools / Regex Tester Web
IP: · ·

Regex Tester

Test regular expressions against sample text with live match highlighting, flags, and a detailed match list

Pattern
/ /
Test String
Highlighted Result
Type a pattern and test string above
Matches
About Regex Tester

Test regular expressions against sample text with live match highlighting. Type a pattern and toggle flags (g, i, m, s, u) to see every match highlighted in your test string instantly, plus a detailed list of each match's position and captured groups — all computed locally using your browser's own regex engine.

  • Live match highlighting as you type
  • Toggle g, i, m, s and u flags
  • Lists every match with its index and capture groups

Frequently asked questions

Which regex flavor does this use?

Your browser's native JavaScript regex engine — the same one powering RegExp in any JS runtime, so patterns you test here behave identically in your code.

Why do I only see one match when my pattern should match more?

Check that the "g" (global) flag is enabled — without it, only the first match in the text is found, matching standard regex semantics.