diff options
author | Georg Brandl <georg@python.org> | 2008-12-05 07:49:49 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-12-05 07:49:49 (GMT) |
commit | b46f0d788cc288238c7ef8064553e5231e131879 (patch) | |
tree | cd844e3052a4da40f6584c3c8c9f847c44e16ad0 /Doc | |
parent | 26576801a683fba28e66fca4759fdc327e87ea3e (diff) | |
download | cpython-b46f0d788cc288238c7ef8064553e5231e131879.zip cpython-b46f0d788cc288238c7ef8064553e5231e131879.tar.gz cpython-b46f0d788cc288238c7ef8064553e5231e131879.tar.bz2 |
#4408: document regex.groups.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/re.rst | 5 |
1 files changed, 5 insertions, 0 deletions
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<id>)`` to group |