Skip to content

Commit 691e371

Browse files
committed
Introduce header for escape sequences and use more common name for reference text
1 parent ef83a34 commit 691e371

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ character ``'$'``.
632632
single: \x; in regular expressions
633633
single: \\; in regular expressions
634634

635-
Most of the :ref:`standard escapes <escape-sequences>` supported by Python
635+
Most of the :ref:`escape sequences <escape-sequences>` supported by Python
636636
string literals are also accepted by the regular expression parser::
637637

638638
\a \b \f \n

Doc/reference/lexical_analysis.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ retained), except that three unescaped quotes in a row terminate the literal. (
549549

550550
.. _escape-sequences:
551551

552+
553+
Escape sequences
554+
^^^^^^^^^^^^^^^^
555+
552556
Unless an ``'r'`` or ``'R'`` prefix is present, escape sequences in string and
553557
bytes literals are interpreted according to rules similar to those used by
554558
Standard C. The recognized escape sequences are:

0 commit comments

Comments
 (0)