diff options
-rw-r--r-- | Doc/library/re.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index c3323df..73ed56f 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 |