]> granicus.if.org Git - python/commitdiff
Document the .lastindex and .lastgroup attributes of MatchObject
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 18 Oct 2000 23:08:13 +0000 (23:08 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 18 Oct 2000 23:08:13 +0000 (23:08 +0000)
Doc/lib/libre.tex

index 9e027e72ce06ca6ab77136fa015322b64fcef4a0..777f594abf2cbd31f2f73d2cdea7d80d3313e241 100644 (file)
@@ -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.