Nodes/comfy-ovum/re.Match.span/start/end (Regex Match Span)
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.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
re.Match.span/start/end (Regex Match Span)
  • match
  • span
  • start
  • end
n0
Categoryovum/regex

Inputs (2)

NameTypeDefaultDescription
matchRE_MATCHThe match object (or list of match objects).
noptINT0The group number for which to get the span. Group 0 is the entire match.

Outputs (3)

NameTypeDescription
spanINT
startINT
endINT