Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
single: \x; in regular expressions
single: \\; in regular expressions
-Most of the standard escapes supported by Python string literals are also
-accepted by the regular expression parser::
+Most of the :ref:`escape sequences <escape-sequences>` supported by Python
+string literals are also accepted by the regular expression parser::
\a \b \f \n
\N \r \t \u
.. _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: