You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Match.expand doesn't document replacement of group 0 #101699
The documentation for Match.expand() does not specify that you can use a named backreference to group 0 (\g<0>) to reference the entire matching string.
Note that unlike Match.group(), a numeric backreference to group 0 (\0) will not be replaced. This inconsistent behavior has lead to some confusion.
Activity
gh-101699: Explain using Match.expand with \g<0> (GH-101701)
pythongh-101699: Explain using Match.expand with \g<0> (pythonGH-101701)
pythongh-101699: Explain using Match.expand with \g<0> (pythonGH-101701)
[3.11] gh-101699: Explain using Match.expand with \g<0> (GH-101701) (G…
[3.12] gh-101699: Explain using Match.expand with \g<0> (GH-101701) (G…
pythongh-101699: Explain using Match.expand with \g<0> (pythonGH-101701)
pythongh-101699: Explain using Match.expand with \g<0> (pythonGH-101701)
pythongh-101699: Explain using Match.expand with \g<0> (pythonGH-101701)