rfind

Basic data handling: StringRfind

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.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (4)

NameTypeRequired
stringSTRINGrequired
substringSTRINGrequired
startINToptional
endINToptional

Outputs (1)

NameType
INTINT