replace

Basic data handling: StringReplace

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.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (4)

NameTypeRequired
stringSTRINGrequired
oldSTRINGrequired
newSTRINGrequired
countINToptional

Outputs (1)

NameType
STRINGSTRING