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

Method groups

rure/regex.py:230–233  ·  view source on GitHub ↗
(self, default=None)

Source from the content-addressed store, hash-verified

228 return tuple(capture_data)
229
230 def groups(self, default=None):
231 # Exclude the entire match (index 0)
232 return self.group(*[i for i in range(len(self.captures)) if i > 0],
233 default=default)
234
235 def groupdict(self, default=None, decode=True):
236 group_indices = sorted(self.re.groupindex.values())

Callers 4

findallMethod · 0.80
test_groupsMethod · 0.80
test_groups_optionalMethod · 0.80

Calls 2

groupMethod · 0.95
rangeFunction · 0.85

Tested by 3

test_groupsMethod · 0.64
test_groups_optionalMethod · 0.64