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
3 changes: 2 additions & 1 deletion Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,8 @@ when there is no match, you can test whether there was a match with a simple
Escapes such as ``\n`` are converted to the appropriate characters,
and numeric backreferences (``\1``, ``\2``) and named backreferences
(``\g<1>``, ``\g<name>``) are replaced by the contents of the
corresponding group.
corresponding group. The backreference ``\g<0>`` will be
replaced by the entire match.

.. versionchanged:: 3.5
Unmatched groups are replaced with an empty string.
Expand Down