🧪 Regex Tester

Write a regular expression, pick your flags, and see every match highlighted in your sample text. Perfect for debugging patterns before you use them in code.

How to use the Regex Tester

  1. Paste your sample text.
  2. Type a regex pattern and select flags (g, i, m, s).
  3. See the highlighted matches and match count.

Regex Tester FAQ

Which regex syntax is supported?
JavaScript regular expressions — the same syntax used in Node.js and browsers.
What does the "g" flag do?
Global — it finds every match instead of stopping at the first one.

Related tools