summaryrefslogtreecommitdiffstats
path: root/Doc/libregex.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-13 06:58:54 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-13 06:58:54 (GMT)
commit1947991c2f85db781fb3fcdc9e3bcfe2905e58e2 (patch)
tree260789493c7151408f009eaa84a7815ce4d28246 /Doc/libregex.tex
parentdc8af0acc1fbeec89e43f1ea43bf1a4d016f4fc6 (diff)
downloadcpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.zip
cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.tar.gz
cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.tar.bz2
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty. Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}" everywhere. Some other minor nits that I happened to come across.
Diffstat (limited to 'Doc/libregex.tex')
-rw-r--r--Doc/libregex.tex14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/libregex.tex b/Doc/libregex.tex
index 00005e2..18b8b18 100644
--- a/Doc/libregex.tex
+++ b/Doc/libregex.tex
@@ -186,7 +186,7 @@ the string.
The module defines these functions, and an exception:
-\renewcommand{\indexsubitem}{(in module regex)}
+\setindexsubitem{(in module regex)}
\begin{funcdesc}{match}{pattern\, string}
Return how many characters at the beginning of \var{string} match
@@ -215,16 +215,16 @@ The module defines these functions, and an exception:
The sequence
-\bcode\begin{verbatim}
+\begin{verbatim}
prog = regex.compile(pat)
result = prog.match(str)
-\end{verbatim}\ecode
+\end{verbatim}
%
is equivalent to
-\bcode\begin{verbatim}
+\begin{verbatim}
result = regex.match(pat, str)
-\end{verbatim}\ecode
+\end{verbatim}
but the version using \code{compile()} is more efficient when multiple
regular expressions are used concurrently in a single program. (The
@@ -274,7 +274,7 @@ equivalents.
\noindent
Compiled regular expression objects support these methods:
-\renewcommand{\indexsubitem}{(regex method)}
+\setindexsubitem{(regex method)}
\begin{funcdesc}{match}{string\optional{\, pos}}
Return how many characters at the beginning of \var{string} match
the compiled regular expression. Return \code{-1} if the string
@@ -319,7 +319,7 @@ identifying groups by their group name.
\noindent
Compiled regular expressions support these data attributes:
-\renewcommand{\indexsubitem}{(regex attribute)}
+\setindexsubitem{(regex attribute)}
\begin{datadesc}{regs}
When the last call to the \code{match()} or \code{search()} method found a