ComfyUI Node

count

Counts occurrences of a substring within a string. This node returns the number of times the specified substring appears in the input string. You can optionally specify start and end positions to limit the search range.

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

    Inputs (4)

    NameTypeDefaultDescription
    stringSTRING
    substringSTRING
    startoptINT0
    endoptINT0

    Outputs (1)

    NameTypeDescription
    INTINT