Commit 36c48e50 authored by Guido van Rossum's avatar Guido van Rossum

Some subtleties suggested by Tamito Kajiyama, including an added

\nodename macro for a section with a very underscriptive title.
parent 73dddb1e
...@@ -137,14 +137,14 @@ be used inside groups (see below) as well. ...@@ -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 contents of a group can be matched later in the string with the
\code{\e [1-9]} special sequence, described next. \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 Matches the contents of the group of the same
number. For example, \code{\e (.+\e ) \e \e 1} matches 'the the' or 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 '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; 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} 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 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 \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 beginning or end of a word. A word is defined as a sequence of
...@@ -182,6 +182,7 @@ the string. ...@@ -182,6 +182,7 @@ the string.
\end{itemize} \end{itemize}
\subsection{Module Contents} \subsection{Module Contents}
\nodename{Contents of Module regex}
The module defines these functions, and an exception: The module defines these functions, and an exception:
......
...@@ -137,14 +137,14 @@ be used inside groups (see below) as well. ...@@ -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 contents of a group can be matched later in the string with the
\code{\e [1-9]} special sequence, described next. \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 Matches the contents of the group of the same
number. For example, \code{\e (.+\e ) \e \e 1} matches 'the the' or 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 '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; 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} 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 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 \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 beginning or end of a word. A word is defined as a sequence of
...@@ -182,6 +182,7 @@ the string. ...@@ -182,6 +182,7 @@ the string.
\end{itemize} \end{itemize}
\subsection{Module Contents} \subsection{Module Contents}
\nodename{Contents of Module regex}
The module defines these functions, and an exception: The module defines these functions, and an exception:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment