Regex-testare

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

Regex-testaren kompilerar ett reguljärt uttryck med dina valda flaggor och rapporterar hur många matchningar det hittar i exempeltexten och listar varje matchning så att du kan verifiera ditt mönster.

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

Vanliga frågor

Vad betyder regex-flaggorna?
g hittar alla matchningar i stället för den första, i ignorerar skiftläge och m låter ^ och $ matcha vid radstarters och -slut.

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. Om oss MateCalc.

Relaterade Räknare