mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Explain octal escapes. Fixes #542226.
This commit is contained in:
parent
52aefc8a7b
commit
81bdc93d2f
1 changed files with 3 additions and 5 deletions
|
@ -373,11 +373,9 @@ also accepted by the regular expression parser:
|
||||||
\\
|
\\
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
Note that octal escapes are not included. While the parser can
|
Octal escapes are included in a limited form: If the first digit is a
|
||||||
attempt to determine whether a character is being specified by it's
|
0, or if there are three octal digits, it is considered an octal
|
||||||
ordinal value expressed in octal, doing so yields an expression which
|
escape. Otherwise, it is a group reference.
|
||||||
is relatively difficult to maintain, as the same syntax is used to
|
|
||||||
refer to numbered groups.
|
|
||||||
|
|
||||||
|
|
||||||
\subsection{Matching vs. Searching \label{matching-searching}}
|
\subsection{Matching vs. Searching \label{matching-searching}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue