ComfyUI Node

rfind

Finds the highest index of the substring in the string. This node searches for the last occurrence of the specified substring within the input string. Returns the highest index where the substring is found. If the substring is not found, it returns -1. Optional start and end parameters allow you to limit the search to a specific portion of the string.

By StableLlama·Created about a year ago·Updated 26 days ago· 45
rfind
    • INT
    string
    substring
    start0
    end0
    CategoryBasic/STRING

    Inputs (4)

    NameTypeDefaultDescription
    stringSTRING
    substringSTRING
    startoptINT0
    endoptINT0

    Outputs (1)

    NameTypeDescription
    INTINT