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 @@ -509,8 +509,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 ``'<[email protected]>'`` as well as ``'[email protected]'``, but
not with ``'<[email protected]'`` nor ``'[email protected]>'``.
matches ``'<[email protected]>'`` as well as ``'[email protected]'``, but does not
match ``'<[email protected]'`` nor ``'[email protected]>'`` in their entirety
(:func:`re.search` finds only ``'[email protected]'`` in the former).

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