ComfyUI  >  Nodes  >  comfyui-mixlab-nodes >  Character In Text

ComfyUI Node: Character In Text

Class Name


shadowcz007 (Account age: 3323 days)
Latest Updated
Github Stars

How to Install comfyui-mixlab-nodes

Install this extension via the ComfyUI Manager by searching for  comfyui-mixlab-nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui-mixlab-nodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Character In Text Description

Detect character presence in text for analysis and processing tasks, aiding in text validation and content filtering.

Character In Text:

The CharacterInText node is designed to help you determine the presence of a specific character within a given text. This node is particularly useful for text analysis and processing tasks where identifying the occurrence of certain characters is essential. By leveraging this node, you can easily check if a character exists in the text and get a corresponding result that can be used in further processing or decision-making workflows. This functionality is beneficial for various applications, including text validation, content filtering, and automated text generation.

Character In Text Input Parameters:


This parameter represents the input text in which you want to search for a specific character. It accepts a string input and supports multiline text. The text you provide here will be analyzed to check for the presence of the specified character.


This parameter specifies the character you are looking for within the input text. It accepts a string input, and you can provide any character or sequence of characters. The node will perform a case-insensitive search to determine if this character exists in the text.


This parameter defines the starting index for the search operation. It accepts an integer value, with a default value of 1. The minimum value is 0, and the maximum value is 1024. This parameter allows you to specify where the search should begin, which can be useful for skipping certain parts of the text or focusing on specific sections.

Character In Text Output Parameters:


The output of this node is an integer value. If the specified character is found in the text, the output will be the sum of 1 and the start_index value. If the character is not found, the output will be equal to the start_index value. This output helps you understand whether the character was present in the text and provides a numerical result that can be used in subsequent processing steps.

Character In Text Usage Tips:

  • To check for the presence of multiple characters, you can use this node in a loop or chain multiple instances of the node with different character inputs.
  • Utilize the start_index parameter to skip over parts of the text that you are not interested in, which can optimize the search process for large texts.
  • Combine this node with other text processing nodes to create complex workflows for text analysis and content generation.

Character In Text Common Errors and Solutions:

"Invalid character input"

  • Explanation: This error occurs when the character parameter is empty or contains invalid characters.
  • Solution: Ensure that the character parameter is not empty and contains valid characters for the search.

"Text input is too large"

  • Explanation: This error occurs when the input text exceeds the maximum allowed size for processing.
  • Solution: Break down the input text into smaller chunks and process them separately using multiple instances of the node.

"Start index out of range"

  • Explanation: This error occurs when the start_index parameter is set to a value outside the allowed range (0 to 1024).
  • Solution: Adjust the start_index parameter to a value within the allowed range to ensure proper operation of the node.

Character In Text Related Nodes

Go back to the extension to check out more related nodes.

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.