summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libre.tex
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-10-18 23:08:13 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-10-18 23:08:13 (GMT)
commit75afc0b914f63249da92078d319466cddccfe031 (patch)
treeda89588c2186ff1c4232c4850fff9af61772b7cb /Doc/lib/libre.tex
parentba0a9899880849f05ab22190147528b0ea054f5a (diff)
downloadcpython-75afc0b914f63249da92078d319466cddccfe031.zip
cpython-75afc0b914f63249da92078d319466cddccfe031.tar.gz
cpython-75afc0b914f63249da92078d319466cddccfe031.tar.bz2
Document the .lastindex and .lastgroup attributes of MatchObject
Diffstat (limited to 'Doc/lib/libre.tex')
-rw-r--r--Doc/lib/libre.tex10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex
index 9e027e7..777f594 100644
--- a/Doc/lib/libre.tex
+++ b/Doc/lib/libre.tex
@@ -733,6 +733,16 @@ The value of \var{endpos} which was passed to the
the string beyond which the regex engine will not go.
\end{memberdesc}
+\begin{memberdesc}[MatchObject]{lastgroup}
+The name of the last matched capturing group, or \code{None} if the
+group didn't have a name, or if no group was matched at all.
+\end{memberdesc}
+
+\begin{memberdesc}[MatchObject]{lastindex}
+The integer index of the last matched capturing group, or \code{None}
+if no group was matched at all.
+\end{memberdesc}
+
\begin{memberdesc}[MatchObject]{re}
The regular expression object whose \method{match()} or
\method{search()} method produced this \class{MatchObject} instance.