]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-101699: Explain using Match.expand with \g<0> (GH-101701)
authorStevoisiak <S.Vascellaro@gmail.com>
Sat, 17 Feb 2024 08:33:28 +0000 (03:33 -0500)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 08:33:28 +0000 (08:33 +0000)
commitd2d78088530433f475d9304104bbc0dac2536edd
treeedc7e3e849e82f9e7c18551e76041b4612a3ebf1
parent73e8637002639e565938d3f205bf46e7f1dbd6a8
gh-101699: Explain using Match.expand with \g<0> (GH-101701)

Update documentation for re library to explain that a backreference `\g<0>` is
expanded to the entire string when using Match.expand().
Note that numeric backreferences to group 0 (`\0`) are not supported.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/re.rst