From 7fb2983532cd951bc3ecd041ad806b4c1c10d1aa Mon Sep 17 00:00:00 2001 From: Jonathan Eunice Date: Sat, 17 Jun 2017 12:08:29 -0400 Subject: [PATCH] mention limitation of \N sequences to Unicode patterns --- Doc/library/re.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3