From b46f0d788cc288238c7ef8064553e5231e131879 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 5 Dec 2008 07:49:49 +0000 Subject: #4408: document regex.groups. --- Doc/library/re.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/re.rst b/Doc/library/re.rst index c9466af..916feca 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -750,6 +750,11 @@ attributes: were provided. +.. attribute:: RegexObject.groups + + The number of capturing groups in the pattern. + + .. attribute:: RegexObject.groupindex A dictionary mapping any symbolic group names defined by ``(?P)`` to group -- cgit v0.12