From 75afc0b914f63249da92078d319466cddccfe031 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Wed, 18 Oct 2000 23:08:13 +0000 Subject: Document the .lastindex and .lastgroup attributes of MatchObject --- Doc/lib/libre.tex | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. -- cgit v0.12