summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libre.tex
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-04-11 12:24:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-04-11 12:24:12 (GMT)
commit81bdc93d2fec9aa95f10e04dd019a8c207faeb52 (patch)
treef229e1494d7d47f0cb3c4f309c9ebd2eeff7a3ca /Doc/lib/libre.tex
parent52aefc8a7b9e9ebda6c1b98a831a273e0b07bf96 (diff)
downloadcpython-81bdc93d2fec9aa95f10e04dd019a8c207faeb52.zip
cpython-81bdc93d2fec9aa95f10e04dd019a8c207faeb52.tar.gz
cpython-81bdc93d2fec9aa95f10e04dd019a8c207faeb52.tar.bz2
Explain octal escapes. Fixes #542226.
Diffstat (limited to 'Doc/lib/libre.tex')
-rw-r--r--Doc/lib/libre.tex8
1 files changed, 3 insertions, 5 deletions
diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex
index 61dd028..5ab8d84 100644
--- a/Doc/lib/libre.tex
+++ b/Doc/lib/libre.tex
@@ -373,11 +373,9 @@ also accepted by the regular expression parser:
\\
\end{verbatim}
-Note that octal escapes are not included. While the parser can
-attempt to determine whether a character is being specified by it's
-ordinal value expressed in octal, doing so yields an expression which
-is relatively difficult to maintain, as the same syntax is used to
-refer to numbered groups.
+Octal escapes are included in a limited form: If the first digit is a
+0, or if there are three octal digits, it is considered an octal
+escape. Otherwise, it is a group reference.
\subsection{Matching vs. Searching \label{matching-searching}}