ComfyUI Node

replace

Replaces occurrences of a substring with another substring. This node returns a copy of the string with all occurrences of substring old replaced by new. If the optional argument count is given, only the first count occurrences are replaced.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
replace
    • STRING
    string
    old
    new
    count-1
    CategoryBasic/STRING

    Inputs (4)

    NameTypeDefaultDescription
    stringSTRING
    oldSTRING
    newSTRING
    countoptINT-1

    Outputs (1)

    NameTypeDescription
    STRINGSTRING