Penguji Regex

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

Penguji Regex mengompilasi ekspresi reguler dengan flag pilihan Anda dan melaporkan berapa banyak kecocokan yang ditemukan pada teks contoh, menampilkan tiap kecocokan agar Anda dapat memverifikasi pola Anda.

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

Pertanyaan yang Sering Diajukan

Apa arti flag regex?
g menemukan semua kecocokan alih-alih yang pertama, i mengabaikan besar-kecil huruf, dan m membiarkan ^ dan $ cocok di awal dan akhir baris.

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. Tentang Kami MateCalc.

Kalkulator Terkait