Skip to content

Commit 4db797b

Browse files
mention \N escapes more tersely
1 parent 7fb2983 commit 4db797b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/re.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,14 +443,14 @@ character ``'$'``.
443443
Most of the standard escapes supported by Python string literals are also
444444
accepted by the regular expression parser::
445445

446-
\a \b \f \n \N{name}
446+
\a \b \f \n \N
447447
\r \t \u \U
448448
\v \x \\
449449

450450
(Note that ``\b`` is used to represent word boundaries, and means "backspace"
451451
only inside character classes.)
452452

453-
``'\u'``, ``'\U'``, and ``'\N{name}'`` escape sequences are only recognized in Unicode
453+
``'\u'``, ``'\U'``, and ``'\N'`` escape sequences are only recognized in Unicode
454454
patterns. In bytes patterns they are not treated specially.
455455

456456
Octal escapes are included in a limited form. If the first digit is a 0, or if

0 commit comments

Comments
 (0)