ComfyUI Node
replace
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.
replace
- STRING
◄string►
◄old►
◄new►
◄count-1►
CategoryBasic/STRING
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — | |
| old | STRING | — | |
| new | STRING | — | |
| countopt | INT | -1 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |