Tester wyrażeń regularnych

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

Tester wyrażeń regularnych kompiluje wyrażenie regularne z wybranymi flagami i zgłasza, ile dopasowań znajduje w przykładowym tekście, wymieniając każde dopasowanie, abyś mógł zweryfikować wzorzec.

Wzór
result = text.match(new RegExp(pattern, flags))

Często zadawane pytania

Co oznaczają flagi regex?
g znajduje wszystkie dopasowania zamiast pierwszego, i ignoruje wielkość liter, a m pozwala ^ i $ pasować na początkach i końcach linii.

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. O nas MateCalc.

Powiązane kalkulatory