Add MatchObject.groups which got messed up during a merge.

This commit is contained in:
Brian Curtin 2010-04-08 13:55:29 +00:00
parent b3959bd63e
commit 48f16f9297
1 changed files with 3 additions and 0 deletions

View File

@ -871,6 +871,9 @@ Match Objects
>>> m.group(1) # Returns only the last match.
'c3'
.. method:: MatchObject.groups(default=None)
Return a tuple containing all the subgroups of the match, from 1 up to however
many groups are in the pattern. The *default* argument is used for groups that
did not participate in the match; it defaults to ``None``. (Incompatibility