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.
re.Match.expand (Regex Match Expand)
- match
- expanded
◄template►
Categoryovum/regex
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| match | RE_MATCH | The match object (or list of match objects). | |
| template | STRING | The template string for expansion, with backreferences like `\1` or `\g<name>`. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| expanded | LIST | — |