Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,9 @@ The special characters are:
*name* exists, and with ``no-pattern`` if it doesn't. ``no-pattern`` is
optional and can be omitted. For example,
``(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)`` is a poor email matching pattern, which
will match with ``'<user@host.com>'`` as well as ``'user@host.com'``, but
not with ``'<user@host.com'`` nor ``'user@host.com>'``.
matches ``'<user@host.com>'`` as well as ``'user@host.com'``, but does not
match ``'<user@host.com'`` nor ``'user@host.com>'`` in their entirety
(:func:`re.search` finds only ``'user@host.com'`` in the former).

.. versionchanged:: 3.12
Group *id* can only contain ASCII digits.
Expand Down
Loading