Dev / ITnew

Regex Tester

Test and debug regular expressions in real time. See all matches highlighted, capture groups listed, and get a plain-English explanation of your pattern. Supports JavaScript regex syntax.

advertisement · 728×90 leaderboard
tool component coming soon

how to use

  1. 1.Enter your regular expression in the pattern field
  2. 2.Set flags (g, i, m) as needed
  3. 3.Paste your test string in the input area
  4. 4.Matches are highlighted in real time

frequently asked

Which regex flavor does this tool use?

This tool uses JavaScript (ECMAScript) regex syntax, which is compatible with Node.js, browsers, and most modern languages.

What does the global (g) flag do?

The global flag finds all matches in the string. Without it, only the first match is returned.