Nodes/comfy-ovum/re.Match.expand (Regex Match Expand)
ComfyUI Node

re.Match.expand (Regex Match Expand)

match.expand(template) Return the string obtained by doing backslash substitution on the template string, similar to the sub() method. Escapes such as \n are converted to the appropriate characters, and numeric backreferences (\1, \2) and named backreferences (\g<name>) are substituted.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
re.Match.expand (Regex Match Expand)
  • match
  • expanded
template
Categoryovum/regex

Inputs (2)

NameTypeDefaultDescription
matchRE_MATCHThe match object (or list of match objects).
templateSTRINGThe template string for expansion, with backreferences like `\1` or `\g<name>`.

Outputs (1)

NameTypeDescription
expandedLIST