Online Regex Tester & Debugger

Free online regex tester and regular expression debugger for JavaScript. Test patterns with live match highlighting, flags, and match counts locally.

Waiting for input...

How to use

  1. Enter the regular expression on the first line (e.g. \d{4}-\d{2}-\d{2}), and the flags on the second line (e.g. gi; you can leave it blank).
  2. Paste your test text below. Matches are highlighted in real time, and the number of matches and characters is displayed.
  3. Turn on the g flag to match every occurrence; turn on i for case-insensitive matching.

Frequently Asked Questions

What do the regex flags (g, i, m) mean?

g enables global matching of all results instead of stopping at the first one, i makes matching case-insensitive, and m enables multiline mode (so ^ and $ match the start and end of each line). You can combine them as needed.

What if a complex regex freezes the page?

Syntax errors are reported immediately with the reason. For complex expressions that could cause catastrophic backtracking, the tool includes timeout protection that automatically aborts matching, and results show at most 10000 matches.

Are my pasted logs and test text uploaded?

No. Regex compilation and matching all run locally in your browser; no text is ever sent to a server.