正規表現テスター

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

正規表現テスターは、選択したフラグ付きで正規表現をコンパイルし、サンプルテキストで見つかった一致数を報告し、各一致を一覧表示してパターンを検証できます。

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

よくある質問

正規表現のフラグは何を意味しますか?
g は最初の代わりに全一致を探し、i は大文字小文字を区別せず、m は ^ と $ に行頭・行末で一致させます。

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. 概要 MateCalc.

関連する計算機