ComfyUI Node
re.Match[index] (Regex Match Select)
Select a specific match from a list of RE_MATCH_T objects by index. This utility node helps extract individual matches from operations that return multiple matches, such as finditer(). Index is clamped to valid range.
re.Match[index] (Regex Match Select)
- matches
- match
◄index0►
Categoryovum/regex
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| matches | RE_MATCH | The list of match objects. | |
| index | INT | 0 | The index of the match to select from the list. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| match | RE_MATCH | — |