Nodes/Sage Utils/Text Substitution
ComfyUI Node

Text Substitution

Substitutes the placeholders in the text with the provided strings. The placeholders use the specified delimiter (default $) followed by str_1, str_2, etc. based on the number of connected inputs. The prefix and suffix are added to the final result.

By arcum42·Created 2 years ago·Updated 24 days ago· 32
Text Substitution
  • strings
  • result
text
delimiter$
prefix
suffix
CategorySage Utils/text/input

Inputs (5)

NameTypeDefaultDescription
textSTRINGThe template text containing placeholders.
delimiterSTRING$Delimiter used to mark placeholder variables.
stringsCOMFY_AUTOGROW_V3Input value for strings.
prefixoptSTRINGText to prepend to the substituted result.
suffixoptSTRINGText to append to the substituted result.

Outputs (1)

NameTypeDescription
resultSTRINGOutput value for result.