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

Method captures

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

Source from the content-addressed store, hash-verified

186
187 @property
188 def captures(self):
189 if isinstance(self._captures, Integral):
190 all_captures = list(self.re._rure.captures_iter(self.string,
191 self.pos))
192 self._captures = all_captures[self._captures]
193 return self._captures
194
195 def expand(self, template):
196 # Not supported by the C library yet

Callers 2

searchMethod · 0.45
matchMethod · 0.45

Calls 1

captures_iterMethod · 0.45

Tested by

no test coverage detected