Regex Tester

  • g (global)
  • gi (global, ignore case)
  • m (multiline)
  • gim (global, ignore case, multiline)
Results
—
—

The Regex Tester compiles a regular expression with your chosen flags and reports how many matches it finds in the sample text, listing each match so you can verify your pattern.

Formula
result = text.match(new RegExp(pattern, flags))

FAQ

What do the regex flags mean?
g finds all matches instead of the first, i ignores case, and m lets ^ and $ match at line starts and ends.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. About MateCalc.

Related Calculators