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.
| # | Match | Index | Groups |
|---|---|---|---|
| 1 | [email protected] | 14 | $1: hello$2: example.com |
| 2 | [email protected] | 35 | $1: support$2: devtoolkit.dev |
使い方
- 正規表現パターンを入力し、フラグ(g, i, m)を選択します。
- テストテキストを貼り付けるか入力すると、一致箇所がリアルタイムでハイライトされます。
- 結果を確認しながら、意図通りに一致するまでパターンを調整します。
- 完成した正規表現をコピーして、コード内で使用します。
よくある質問
フラグ g, i, m の意味は何ですか?
g = グローバルマッチ(すべての一致を検索)、i = 大文字小文字を区別しない、m = 複数行モード(^ と $ が行の先頭/末尾に一致)。