Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates text manipulation by replacing substrings, useful for AI artists automating text modifications.
The CR Text Replace node is designed to facilitate the process of text manipulation by allowing you to replace specific substrings within a given text. This node is particularly useful for AI artists who need to automate the modification of text data, such as replacing keywords or phrases in large text blocks. By providing up to three pairs of find-and-replace strings, this node offers a flexible and efficient way to customize text content, making it a valuable tool for text preprocessing and data cleaning tasks.
This is the main text input where you provide the text that you want to manipulate. It supports multiline input, allowing you to work with large blocks of text. The default value is an empty string, and this parameter is required for the node to function.
This optional parameter specifies the first substring you want to find in the text. It is a single-line string input, and the default value is an empty string. If left empty, no replacement will occur for this pair.
This optional parameter specifies the replacement string for the first find operation. It is a single-line string input, and the default value is an empty string. If left empty, the found substring will be replaced with an empty string.
This optional parameter specifies the second substring you want to find in the text. It is a single-line string input, and the default value is an empty string. If left empty, no replacement will occur for this pair.
This optional parameter specifies the replacement string for the second find operation. It is a single-line string input, and the default value is an empty string. If left empty, the found substring will be replaced with an empty string.
This optional parameter specifies the third substring you want to find in the text. It is a single-line string input, and the default value is an empty string. If left empty, no replacement will occur for this pair.
This optional parameter specifies the replacement string for the third find operation. It is a single-line string input, and the default value is an empty string. If left empty, the found substring will be replaced with an empty string.
This output parameter returns the modified text after all specified find-and-replace operations have been performed. It reflects the final state of the text based on the input parameters provided.
This output parameter provides a URL link to the documentation or help page for the CR Text Replace node. It is useful for users who need additional information or guidance on how to use the node effectively.
text
parameter is required and cannot be empty.text
parameter.find
parameter has a corresponding replace
parameter and that they are correctly filled out.© Copyright 2024 RunComfy. All Rights Reserved.