ComfyUI Node
String Regex Match
正規表現でテキストを検索・抽出します
String Regex Match
- result
- matched
- match_count
◄text►
◄pattern►
◄modesearch►
◄group0►
◄ignore_casefalse►
◄multilinefalse►
◄join_str, ►
CategoryString Function
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — | |
| pattern | STRING | — | |
| mode | COMBO | search | search=どこでも検索, match=先頭から, fullmatch=全体, findall=全件取得 |
| groupopt | INT | 00–99 | 取得するグループ番号 (0=マッチ全体, 1以降=キャプチャグループ)。findall モードでは無視 |
| ignore_caseopt | BOOLEAN | false | — |
| multilineopt | BOOLEAN | false | True にすると ^ $ が各行の先頭・末尾にマッチ |
| join_stropt | STRING | , | findall モードで複数結果を結合する区切り文字 |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| result | STRING | — |
| matched | BOOLEAN | — |
| match_count | INT | — |