summaryrefslogtreecommitdiff
path: root/Doc/lib/libre.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-12-28 19:03:24 +0000
committerFred Drake <fdrake@acm.org>1998-12-28 19:03:24 +0000
commit9237b23ef27838ea64cd3773312139344d7a2dc1 (patch)
treed451e83c1c418c3eecef1055cee72460a8ba1551 /Doc/lib/libre.tex
parent9bd5547de29aa0542a2dffead2a5d62ab37383df (diff)
downloadcpython-9237b23ef27838ea64cd3773312139344d7a2dc1.tar.gz
Adjust a few niggles that affected the HTML conversion (a couple of
"^"s were being dropped in the context of [^...]).
Diffstat (limited to 'Doc/lib/libre.tex')
-rw-r--r--Doc/lib/libre.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex
index 81bfd9223e..161cc5b63b 100644
--- a/Doc/lib/libre.tex
+++ b/Doc/lib/libre.tex
@@ -150,7 +150,7 @@ pattern \regexp{[]]} will match \code{']'}, for example.
You can match the characters not within a range by \dfn{complementing}
the set. This is indicated by including a
\character{\^} as the first character of the set; \character{\^} elsewhere will
-simply match the \character{\^} character. For example, \regexp{[\^5]}
+simply match the \character{\^} character. For example, \regexp{[{\^}5]}
will match any character except \character{5}.
\item[\character{|}]\code{A|B}, where A and B can be arbitrary REs,
@@ -254,7 +254,7 @@ Python's string literals.
equivalent to the set \regexp{[0-9]}.
%
\item[\code{\e D}]Matches any non-digit character; this is
-equivalent to the set \regexp{[\^0-9]}.
+equivalent to the set \regexp{[{\^}0-9]}.
%
\item[\code{\e s}]Matches any whitespace character; this is
equivalent to the set \regexp{[ \e t\e n\e r\e f\e v]}.
@@ -270,7 +270,7 @@ current locale.
%
\item[\code{\e W}]When the \constant{LOCALE} flag is not specified,
matches any non-alphanumeric character; this is equivalent to the set
-\regexp{[\^a-zA-Z0-9_]}. With \constant{LOCALE}, it will match any
+\regexp{[{\^}a-zA-Z0-9_]}. With \constant{LOCALE}, it will match any
character not in the set \regexp{[0-9_]}, and not defined as a letter
for the current locale.