ComfyUI > Nodes > ComfyUI Level Pixel > Text Replace [LP]

ComfyUI Node: Text Replace [LP]

Class Name

TextReplace|LP

Category
LevelPixel/Text
Author
LevelPixel (Account age: 647days)
Extension
ComfyUI Level Pixel
Latest Updated
2026-02-24
Github Stars
0.03K

How to Install ComfyUI Level Pixel

Install this extension via the ComfyUI Manager by searching for ComfyUI Level Pixel
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Level Pixel in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Text Replace [LP] Description

Facilitates automated text manipulation with up to nine find-and-replace operations for efficiency.

Text Replace [LP]| Text Replace [LP]:

The TextReplace| Text Replace [LP] node is designed to facilitate the process of text manipulation by allowing you to perform multiple find-and-replace operations within a given text. This node is particularly useful for artists and creators who need to automate the modification of text strings, ensuring consistency and efficiency in their workflows. By providing up to nine pairs of find-and-replace parameters, this node enables you to systematically replace specific substrings with desired alternatives, streamlining the text editing process. This capability is essential for tasks that involve repetitive text changes, such as updating terminology, correcting typos, or adapting text for different contexts. The node's primary goal is to enhance productivity by reducing manual text editing efforts, making it an invaluable tool for those who frequently work with large volumes of text data.

Text Replace [LP]| Text Replace [LP] Input Parameters:

text

This parameter represents the input text that you want to modify. It is a required field and must be provided for the node to function. The text can be multiline, allowing you to work with extensive text blocks. The default value is an empty string, and there is no explicit minimum or maximum length, but practical limits are determined by system memory and processing capabilities.

find1

This parameter specifies the first substring you want to find within the input text. It is a string value, and the default is an empty string. When specified, the node will search for this substring and replace it with the corresponding replace1 value.

replace1

This parameter defines the replacement string for the first find operation. It is a string value, and the default is an empty string. When find1 is located in the text, it will be replaced with this value.

find2

This parameter specifies the second substring to find within the input text. It functions similarly to find1, with a default value of an empty string.

replace2

This parameter defines the replacement string for the second find operation, corresponding to find2. The default is an empty string.

find3

This parameter specifies the third substring to find within the input text. It functions similarly to find1, with a default value of an empty string.

replace3

This parameter defines the replacement string for the third find operation, corresponding to find3. The default is an empty string.

find4

This parameter specifies the fourth substring to find within the input text. It functions similarly to find1, with a default value of an empty string.

replace4

This parameter defines the replacement string for the fourth find operation, corresponding to find4. The default is an empty string.

find5

This parameter specifies the fifth substring to find within the input text. It functions similarly to find1, with a default value of an empty string.

replace5

This parameter defines the replacement string for the fifth find operation, corresponding to find5. The default is an empty string.

find6

This parameter specifies the sixth substring to find within the input text. It functions similarly to find1, with a default value of an empty string.

replace6

This parameter defines the replacement string for the sixth find operation, corresponding to find6. The default is an empty string.

find7

This parameter specifies the seventh substring to find within the input text. It functions similarly to find1, with a default value of an empty string.

replace7

This parameter defines the replacement string for the seventh find operation, corresponding to find7. The default is an empty string.

find8

This parameter specifies the eighth substring to find within the input text. It functions similarly to find1, with a default value of an empty string.

replace8

This parameter defines the replacement string for the eighth find operation, corresponding to find8. The default is an empty string.

find9

This parameter specifies the ninth substring to find within the input text. It functions similarly to find1, with a default value of an empty string.

replace9

This parameter defines the replacement string for the ninth find operation, corresponding to find9. The default is an empty string.

Text Replace [LP]| Text Replace [LP] Output Parameters:

text TEXT

This output parameter returns the modified text after all specified find-and-replace operations have been executed. The output is a single string that reflects the changes made according to the input parameters. This allows you to see the final result of your text manipulations, ensuring that all intended replacements have been applied correctly.

Text Replace [LP]| Text Replace [LP] Usage Tips:

  • To maximize efficiency, ensure that your find and replace parameters are correctly paired and ordered according to your text modification needs.
  • Use this node to automate repetitive text changes across large documents, saving time and reducing the risk of manual errors.
  • Consider using this node in conjunction with other text processing nodes to create a comprehensive text manipulation pipeline.

Text Replace [LP]| Text Replace [LP] Common Errors and Solutions:

Empty Input Text

  • Explanation: The input text is empty, so no replacements can be made.
  • Solution: Ensure that the text parameter is populated with the text you wish to modify before executing the node.

Missing Find/Replace Pair

  • Explanation: A find parameter is specified without a corresponding replace parameter, or vice versa.
  • Solution: Verify that each find parameter has a corresponding replace parameter to ensure proper text replacement.

No Matches Found

  • Explanation: The specified find strings do not match any part of the input text.
  • Solution: Double-check the find strings for accuracy and ensure they match the text you intend to replace.

Text Replace [LP] Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Level Pixel
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Text Replace [LP]