ComfyUI Node

removeprefix

Removes prefix from the string if present. This node returns a copy of the string with the specified prefix removed if the string starts with that prefix, otherwise returns the original string.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
removeprefix
    • STRING
    string
    prefix
    CategoryBasic/STRING

    Inputs (2)

    NameTypeDefaultDescription
    stringSTRING
    prefixSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING