summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorwulmer <wulmer@users.noreply.github.com>2023-07-23 08:50:38 (GMT)
committerGitHub <noreply@github.com>2023-07-23 08:50:38 (GMT)
commit0af247da0932692592ed85ba8b4a1520627ab4ac (patch)
treeffa40129042a1848f2fa1999b269383a4806a2c1 /Doc/reference
parent9eeb4b485f4f9e13e5cb638e43a0baecb3ff4e86 (diff)
downloadcpython-0af247da0932692592ed85ba8b4a1520627ab4ac.zip
cpython-0af247da0932692592ed85ba8b4a1520627ab4ac.tar.gz
cpython-0af247da0932692592ed85ba8b4a1520627ab4ac.tar.bz2
gh-102111: Add link to string escape sequences in re module (#106995)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/lexical_analysis.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index 47062f8..dde7ba1 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -549,6 +549,10 @@ retained), except that three unescaped quotes in a row terminate the literal. (
.. _escape-sequences:
+
+Escape sequences
+^^^^^^^^^^^^^^^^
+
Unless an ``'r'`` or ``'R'`` prefix is present, escape sequences in string and
bytes literals are interpreted according to rules similar to those used by
Standard C. The recognized escape sequences are: