Add MatchObject.groups which got messed up during a merge.
This commit is contained in:
parent
b3959bd63e
commit
48f16f9297
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue