MCPcopy Create free account
hub / github.com/davidblewett/rure-python / lastindex

Method lastindex

rure/regex.py:165–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163
164 @property
165 def lastindex(self):
166 groups = [
167 gindex
168 for gindex, gname in enumerate(self.re.capture_names())
169 if self.captures[gindex] is not None
170 ]
171 if groups:
172 return groups[-1]
173
174 @property
175 def lastgroup(self, decode=True):

Callers

nothing calls this directly

Calls 1

capture_namesMethod · 0.45

Tested by

no test coverage detected