summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-11 22:55:55 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-11 22:55:55 (GMT)
commit38e0df330b7b78cd14fd3d55cbae810280daf26c (patch)
tree944365ab93564c7b5a5314699a76048fe82a7d01 /Doc
parentf5370f4019e38a814c788c24f9b3ee2acc3d8b93 (diff)
downloadcpython-38e0df330b7b78cd14fd3d55cbae810280daf26c.zip
cpython-38e0df330b7b78cd14fd3d55cbae810280daf26c.tar.gz
cpython-38e0df330b7b78cd14fd3d55cbae810280daf26c.tar.bz2
Some subtleties suggested by Tamito Kajiyama, including an added
\nodename macro for a section with a very underscriptive title.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libregex.tex5
-rw-r--r--Doc/libregex.tex5
2 files changed, 6 insertions, 4 deletions
diff --git a/Doc/lib/libregex.tex b/Doc/lib/libregex.tex
index f3a3fa9..00005e2 100644
--- a/Doc/lib/libregex.tex
+++ b/Doc/lib/libregex.tex
@@ -137,14 +137,14 @@ be used inside groups (see below) as well.
contents of a group can be matched later in the string with the
\code{\e [1-9]} special sequence, described next.
%
-{\fulllineitems\item[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
+\fulllineitems\item[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
Matches the contents of the group of the same
number. For example, \code{\e (.+\e ) \e \e 1} matches 'the the' or
'55 55', but not 'the end' (note the space after the group). This
special sequence can only be used to match one of the first 9 groups;
groups with higher numbers can be matched using the \code{\e v}
sequence. (\code{\e 8} and \code{\e 9} don't need a double backslash
-because they are not octal digits.)}
+because they are not octal digits.)
%
\item[\code{\e \e b}] Matches the empty string, but only at the
beginning or end of a word. A word is defined as a sequence of
@@ -182,6 +182,7 @@ the string.
\end{itemize}
\subsection{Module Contents}
+\nodename{Contents of Module regex}
The module defines these functions, and an exception:
diff --git a/Doc/libregex.tex b/Doc/libregex.tex
index f3a3fa9..00005e2 100644
--- a/Doc/libregex.tex
+++ b/Doc/libregex.tex
@@ -137,14 +137,14 @@ be used inside groups (see below) as well.
contents of a group can be matched later in the string with the
\code{\e [1-9]} special sequence, described next.
%
-{\fulllineitems\item[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
+\fulllineitems\item[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
Matches the contents of the group of the same
number. For example, \code{\e (.+\e ) \e \e 1} matches 'the the' or
'55 55', but not 'the end' (note the space after the group). This
special sequence can only be used to match one of the first 9 groups;
groups with higher numbers can be matched using the \code{\e v}
sequence. (\code{\e 8} and \code{\e 9} don't need a double backslash
-because they are not octal digits.)}
+because they are not octal digits.)
%
\item[\code{\e \e b}] Matches the empty string, but only at the
beginning or end of a word. A word is defined as a sequence of
@@ -182,6 +182,7 @@ the string.
\end{itemize}
\subsection{Module Contents}
+\nodename{Contents of Module regex}
The module defines these functions, and an exception: