Nodes/comfy-ovum/re.Match.group (Regex Match Group Selector)
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.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
re.Match.group (Regex Match Group Selector)
  • match
  • group
  • groups
  • groupdict
n0
default
Categoryovum/regex

Inputs (3)

NameTypeDefaultDescription
matchRE_MATCHThe match object (or list of match objects).
noptINT0The group number to retrieve. Group 0 is the entire match.
defaultoptSTRINGThe default value to return for `groups()` and `groupdict()` if a group did not participate in the match.

Outputs (3)

NameTypeDescription
groupSTRING
groupsSTRING
groupdictDICT