Nodes/Kinburg-Nodes/Text Transform
ComfyUI Node

Text Transform

A ComfyUI node in Kinburg-Nodes/util with 8 inputs and 3 outputs.

By Kinburg·Created 2 months ago·Updated 3 days ago· 1
Text Transform
    • text
    • count
    • error
    text
    operationreplace
    pattern
    replacement
    ignorecasefalse
    multilinefalse
    dotallfalse
    join_with
    CategoryKinburg-Nodes/util

    Inputs (8)

    NameTypeDefaultDescription
    textSTRINGThe input text (type here or wire a STRING in).
    operationCOMBOreplaceWhat to do. replace = literal; regex_* = pattern is a regular expression; strip/collapse/case need no pattern.
    patternSTRINGSearch text (literal for 'replace'; a regex for the regex_* ops). For 'strip', the exact characters to trim (empty = whitespace).
    replacementSTRINGReplacement text for replace / regex_replace. In regex_replace you may reference groups as \1, \2, …
    ignorecaseoptBOOLEANfalseRegex ops: case-insensitive matching (re.IGNORECASE).
    multilineoptBOOLEANfalseRegex ops: ^ and $ match at line boundaries (re.MULTILINE).
    dotalloptBOOLEANfalseRegex ops: '.' also matches newlines (re.DOTALL).
    join_withoptSTRING regex_findall: string inserted between matches. Default is a newline.

    Outputs (3)

    NameTypeDescription
    textSTRING
    countINT
    errorSTRING