]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
mention \N escapes more tersely
authorJonathan Eunice <jonathan.eunice@gmail.com>
Sat, 17 Jun 2017 16:10:29 +0000 (12:10 -0400)
committerJonathan Eunice <jonathan.eunice@gmail.com>
Sat, 17 Jun 2017 16:10:29 +0000 (12:10 -0400)
Doc/library/re.rst

index 94a6acffc92d73cf8b980b66d66dfaa7c3180e95..9fafc0f462d599a2de9fc77afd5371e064ea9774 100644 (file)
@@ -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