From: Martin v. Löwis Date: Thu, 11 Apr 2002 12:24:12 +0000 (+0000) Subject: Explain octal escapes. Fixes #542226. X-Git-Tag: v2.3c1~6053 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81bdc93d2fec9aa95f10e04dd019a8c207faeb52;p=python Explain octal escapes. Fixes #542226. --- diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex index 61dd02899a..5ab8d84a29 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}}