]> granicus.if.org Git - python/commitdiff
Explain octal escapes. Fixes #542226.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 11 Apr 2002 12:24:12 +0000 (12:24 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 11 Apr 2002 12:24:12 +0000 (12:24 +0000)
Doc/lib/libre.tex

index 61dd02899a64423ecc15b2c89f2997b77c6dbe82..5ab8d84a2979693208a8b1fd8d0f55874a3b88bc 100644 (file)
@@ -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}}