ComfyUI > Nodes > ComfyUI 1hewNodes > Text Match Rownum

ComfyUI Node: Text Match Rownum

Class Name

1hew_text_match_rownum

Category
1hewNodes/logic
Author
1hew (Account age: 1113days)
Extension
ComfyUI 1hewNodes
Latest Updated
2026-04-17
Github Stars
0.03K

How to Install ComfyUI 1hewNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI 1hewNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 1hewNodes 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 Rownum Description

Identifies the line number of an exact text match within multiline text for precise analysis.

Text Match Rownum:

The 1hew_text_match_rownum node is designed to help you identify the specific line number within a block of multiline text where a given single line of text matches exactly. This node is particularly useful when you need to locate the position of a specific string within a larger text document, allowing for precise text analysis and manipulation. By providing a straightforward method to find the exact line number of a match, this node can be a valuable tool in text processing tasks, enabling you to efficiently navigate and manage text data.

Text Match Rownum Input Parameters:

text_multiline

This parameter accepts a block of text that can span multiple lines. It serves as the source text in which the node will search for the specified single line of text. The function of this parameter is to provide the context or environment where the search operation will be conducted. There are no specific minimum or maximum values for this parameter, but it should be a valid string input. The impact of this parameter on the node's execution is significant, as it determines the scope of the search operation.

text_single

This parameter takes a single line of text that you want to find within the text_multiline input. It is the target string that the node will attempt to match against each line in the multiline text. The function of this parameter is to specify the exact text you are looking for. Like text_multiline, there are no specific minimum or maximum values, but it should be a valid string input. The accuracy of this parameter directly affects the node's ability to find a match and return the correct line number.

Text Match Rownum Output Parameters:

int

The output parameter is an integer that represents the line number where the text_single matches a line in the text_multiline. If a match is found, the node returns the line number as an integer, starting from 1. If no match is found, the node returns 0. This output is crucial for understanding the position of the matched text within the multiline input, enabling further text processing or analysis based on the line number.

Text Match Rownum Usage Tips:

  • Ensure that the text_single input is trimmed of any leading or trailing whitespace to avoid mismatches due to formatting issues.
  • Use this node in conjunction with other text processing nodes to build complex workflows that require precise text location and manipulation.

Text Match Rownum Common Errors and Solutions:

text_match_rownum error: <error_message>

  • Explanation: This error occurs when there is an unexpected issue during the execution of the node, possibly due to invalid input types or unexpected text formats.
  • Solution: Verify that both text_multiline and text_single inputs are valid strings. Ensure that the text_single input is not empty and that the text_multiline input contains the expected text data. If the error persists, check for any special characters or formatting issues that might affect the text comparison.

Text Match Rownum Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI 1hewNodes
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 Match Rownum