def groups(self, default=None):
groups = []<EOL>for indices in self.regs[<NUM_LIT:1>:]:<EOL><INDENT>if indices[<NUM_LIT:0>] >= <NUM_LIT:0>:<EOL><INDENT>groups.append(self.string[indices[<NUM_LIT:0>]:indices[<NUM_LIT:1>]])<EOL><DEDENT>else:<EOL><INDENT>groups.append(default)<EOL><DEDENT><DEDENT>return tuple(groups)<EOL>
Returns a tuple containing all the subgroups of the match. The
        default argument is used for groups that did not participate in the
        match (defaults to None).