Nodes/ComfyUI-String-Function/String Regex Match
ComfyUI Node

String Regex Match

正規表現でテキストを検索・抽出します

By TakkunRed·Created 4 months ago·Updated 3 months ago· 0
String Regex Match
    • result
    • matched
    • match_count
    text
    pattern
    modesearch
    group0
    ignore_casefalse
    multilinefalse
    join_str,
    CategoryString Function

    Inputs (7)

    NameTypeDefaultDescription
    textSTRING
    patternSTRING
    modeCOMBOsearchsearch=どこでも検索, match=先頭から, fullmatch=全体, findall=全件取得
    groupoptINT00–99取得するグループ番号 (0=マッチ全体, 1以降=キャプチャグループ)。findall モードでは無視
    ignore_caseoptBOOLEANfalse
    multilineoptBOOLEANfalseTrue にすると ^ $ が各行の先頭・末尾にマッチ
    join_stroptSTRING, findall モードで複数結果を結合する区切り文字

    Outputs (3)

    NameTypeDescription
    resultSTRING
    matchedBOOLEAN
    match_countINT