ComfyUI Node
re.Match.span/start/end (Regex Match Span)
match.span(group), match.start(group), match.end(group) Return the indices of the start and end of the substring matched by group. span() returns a 2-tuple (start, end), start() returns the start index, and end() returns the end index.
re.Match.span/start/end (Regex Match Span)
- match
- span
- start
- end
◄n0►
Categoryovum/regex
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| match | RE_MATCH | The match object (or list of match objects). | |
| nopt | INT | 0 | The group number for which to get the span. Group 0 is the entire match. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| span | INT | — |
| start | INT | — |
| end | INT | — |