From: Jonathan Eunice Date: Sat, 17 Jun 2017 16:10:29 +0000 (-0400) Subject: mention \N escapes more tersely X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4db797b1cfe06c265e56e40d63501bc76e616c0f;p=thirdparty%2FPython%2Fcpython.git mention \N escapes more tersely --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 94a6acffc92d..9fafc0f462d5 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -443,14 +443,14 @@ character ``'$'``. Most of the standard escapes supported by Python string literals are also accepted by the regular expression parser:: - \a \b \f \n \N{name} + \a \b \f \n \N \r \t \u \U \v \x \\ (Note that ``\b`` is used to represent word boundaries, and means "backspace" only inside character classes.) -``'\u'``, ``'\U'``, and ``'\N{name}'`` escape sequences are only recognized in Unicode +``'\u'``, ``'\U'``, and ``'\N'`` escape sequences are only recognized in Unicode patterns. In bytes patterns they are not treated specially. Octal escapes are included in a limited form. If the first digit is a 0, or if