Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently search and replace specific substrings in text for automation and bulk changes.
The text-util-search-text
node is designed to help you efficiently search and replace specific substrings within a given text. This node is particularly useful for text manipulation tasks where you need to find occurrences of a particular string and optionally replace them with another string. It provides a straightforward way to automate text editing processes, saving you time and effort. Whether you are preparing text for further processing or simply need to make bulk changes, this node offers a reliable solution.
This parameter represents the input text in which you want to search for a specific substring. It accepts a string value and does not support multiline input. The default value is an empty string (''
).
This parameter specifies the substring you want to search for within the input text. It accepts a string value and does not support multiline input. The default value is an empty string (''
).
This parameter defines the substring that will replace the occurrences of the find
substring in the input text. It accepts a string value and does not support multiline input. The default value is an empty string (''
).
This parameter determines whether the search and replace operation should be performed. It accepts two options: yes
and no
. If set to yes
, the node will perform the search and replace operation. If set to no
, the input text will be returned unchanged. The default value is yes
.
This output parameter returns the modified text after performing the search and replace operation. If the action
parameter is set to no
, it returns the original input text. The output is a string value.
text
, find
, and replace
parameters accordingly and ensure the action
parameter is set to yes
.action
parameter to no
.find
substring does not exist in the input text.find
substring is correct and exists within the input text.text
, find
, and replace
) are provided as string values.find
or replace
parameters may cause unexpected behavior.© Copyright 2024 RunComfy. All Rights Reserved.