From: Brian Curtin Date: Thu, 8 Apr 2010 13:55:29 +0000 (+0000) Subject: Add MatchObject.groups which got messed up during a merge. X-Git-Tag: v3.2a1~1200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48f16f9297682ce0e01f0edfb5e4ab6f99ead7da;p=python Add MatchObject.groups which got messed up during a merge. --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index c3323df3e8..73ed56fef1 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -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