From: Jonathan Eunice Date: Sat, 17 Jun 2017 16:08:29 +0000 (-0400) Subject: mention limitation of \N sequences to Unicode patterns X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fb2983532cd951bc3ecd041ad806b4c1c10d1aa;p=thirdparty%2FPython%2Fcpython.git mention limitation of \N sequences to Unicode patterns --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 6a0bbd328541..94a6acffc92d 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -450,7 +450,7 @@ accepted by the regular expression parser:: (Note that ``\b`` is used to represent word boundaries, and means "backspace" only inside character classes.) -``'\u'`` and ``'\U'`` escape sequences are only recognized in Unicode +``'\u'``, ``'\U'``, and ``'\N{name}'`` 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