ComfyUI > Nodes > ComfyUI_KimNodes > 🍒Text_Match / 文本匹配

ComfyUI Node: 🍒Text_Match / 文本匹配

Class Name

Text_Match

Category
🍒 Kim-Nodes/🔍Text_Tools | 文本工具
Author
Kim (Account age: 2536days)
Extension
ComfyUI_KimNodes
Latest Updated
2025-09-22
Github Stars
0.05K

How to Install ComfyUI_KimNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_KimNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_KimNodes 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_Match / 文本匹配 Description

Text_Match node enables simple substring detection within text for validation and filtering tasks.

🍒Text_Match / 文本匹配:

The Text_Match node is designed to facilitate simple text matching operations, allowing you to determine if a specific substring exists within a given text. This node is particularly useful for tasks that require basic text validation or filtering, such as checking for the presence of keywords or tags within a larger body of text. By leveraging this node, you can streamline processes that involve text comparison, ensuring that your workflows are efficient and effective. The primary goal of the Text_Match node is to provide a straightforward method for text matching, making it accessible even to those without a technical background.

🍒Text_Match / 文本匹配 Input Parameters:

text_match

The text_match parameter is a string input that specifies the substring you want to search for within the target text. This parameter is crucial as it defines the criteria for the text matching operation. There are no predefined minimum, maximum, or default values for this parameter, as it entirely depends on the specific text you wish to match. It is important to ensure that the string provided is accurate and reflects the exact text you are looking to identify within the text_tag.

text_tag

The text_tag parameter is another string input that represents the text in which you want to search for the text_match substring. This parameter serves as the context or body of text where the matching operation will be performed. Similar to text_match, there are no predefined constraints on the length or content of this parameter. It is essential to provide the complete and correct text to ensure accurate matching results.

🍒Text_Match / 文本匹配 Output Parameters:

文本

The 文本 output is a string representation of the boolean result of the text matching operation. It returns the string "True" if the text_match substring is found within the text_tag, and "False" otherwise. This output is useful for logging or displaying the result in a human-readable format.

布尔值

The 布尔值 output is a boolean value that directly indicates the result of the text matching operation. It returns True if the text_match substring is present in the text_tag, and False if it is not. This output is particularly useful for conditional logic or decision-making processes within your workflow, as it provides a clear and concise result of the matching operation.

🍒Text_Match / 文本匹配 Usage Tips:

  • Ensure that both text_match and text_tag parameters are correctly set to avoid mismatches due to typographical errors or incorrect input values.
  • Use the 文本 output for logging purposes or when you need a string representation of the result, and rely on the 布尔值 output for programmatic decision-making.

🍒Text_Match / 文本匹配 Common Errors and Solutions:

Incorrect Input Type

  • Explanation: The node expects string inputs for both text_match and text_tag. Providing inputs of a different type may cause unexpected behavior.
  • Solution: Ensure that both inputs are strings. Convert any non-string inputs to strings before using them with this node.

Empty Input Strings

  • Explanation: If either text_match or text_tag is an empty string, the node may not function as intended, leading to incorrect results.
  • Solution: Verify that both input strings are non-empty and contain the expected text before executing the node.

🍒Text_Match / 文本匹配 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_KimNodes
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.