Regex-Tester

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

Der Regex-Tester kompiliert einen regulären Ausdruck mit den gewählten Flags und meldet, wie viele Treffer im Beispieltext gefunden werden, wobei jeder Treffer aufgelistet wird, damit Sie Ihr Muster prüfen können.

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

FAQ

Was bedeuten die Regex-Flags?
g findet alle Treffer statt nur den ersten, i ignoriert Groß-/Kleinschreibung, und m lässt ^ und $ an Zeilenanfang und -ende treffen.

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. Über uns MateCalc.

Ähnliche Rechner