summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libregex.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-07 10:14:09 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-07 10:14:09 (GMT)
commit6c4f003202bade83791c754cd94e28c1c2fb10fa (patch)
tree749a24c8924e8b4e717cf0267b1c93791f30d3f5 /Doc/lib/libregex.tex
parentd01c100713ed5f4490300c16501407b86e789e5d (diff)
downloadcpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.zip
cpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.tar.gz
cpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.tar.bz2
changes (suggested) by Soren Larsen
Diffstat (limited to 'Doc/lib/libregex.tex')
-rw-r--r--Doc/lib/libregex.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libregex.tex b/Doc/lib/libregex.tex
index 10abece..dae6666 100644
--- a/Doc/lib/libregex.tex
+++ b/Doc/lib/libregex.tex
@@ -19,7 +19,7 @@ is because Python doesn't remove backslashes from string literals if
they are followed by an unrecognized escape character.
\emph{However}, if you want to include a literal \dfn{backslash} in a
regular expression represented as a string literal, you have to
-\emph{quadruple} it. E.g. to extract LaTeX \samp{\e section\{{\rm
+\emph{quadruple} it. E.g.\ to extract \LaTeX\ \samp{\e section\{{\rm
\ldots}\}} headers from a document, you can use this pattern:
\code{'\e \e \e\e section\{\e (.*\e )\}'}.
@@ -84,7 +84,7 @@ expressions.)
\begin{funcdesc}{symcomp}{pattern\optional{\, translate}}
This is like \code{compile}, but supports symbolic group names: if a
-parentheses-enclosed group begins with a group name in angular
+parenthesis-enclosed group begins with a group name in angular
brackets, e.g. \code{'\e(<id>[a-z][a-z0-9]*\e)'}, the group can
be referenced by its name in arguments to the \code{group} method of
the resulting compiled regular expression object, like this: