⚡ DevToolKit

Regex Tester

Test your regular expressions against sample text with real-time highlighting of matches. Supports global, case-insensitive, and multiline flags with match group details.

//
Contact us at [email protected] or [email protected] for more info.
#MatchIndexGroups
1[email protected]14$1: hello$2: example.com
2[email protected]35$1: support$2: devtoolkit.dev

使い方

  1. 正規表現パターンを入力し、フラグ(g, i, m)を選択します。
  2. テストテキストを貼り付けるか入力すると、一致箇所がリアルタイムでハイライトされます。
  3. 結果を確認しながら、意図通りに一致するまでパターンを調整します。
  4. 完成した正規表現をコピーして、コード内で使用します。

よくある質問

フラグ g, i, m の意味は何ですか?

g = グローバルマッチ(すべての一致を検索)、i = 大文字小文字を区別しない、m = 複数行モード(^ と $ が行の先頭/末尾に一致)。