ComfyUI Node
re.Match.group (Regex Match Group Selector)
match.group(group1, ...), match.groups(default=None), match.groupdict(default=None) Return subgroups of the match. group() returns one or more subgroups, groups() returns a tuple containing all subgroups, and groupdict() returns a dictionary containing all named subgroups.
re.Match.group (Regex Match Group Selector)
- match
- group
- groups
- groupdict
◄n0►
◄default►
Categoryovum/regex
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| match | RE_MATCH | The match object (or list of match objects). | |
| nopt | INT | 0 | The group number to retrieve. Group 0 is the entire match. |
| defaultopt | STRING | The default value to return for `groups()` and `groupdict()` if a group did not participate in the match. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| group | STRING | — |
| groups | STRING | — |
| groupdict | DICT | — |