8000 [3.11] gh-101699: Explain using Match.expand with \g<0> (GH-101701) by miss-islington · Pull Request #115584 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-101699: Explain using Match.expand with \g<0> (GH-101701) #115584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

miss-islington
Copy link
Contributor
@miss-islington miss-islington commented Feb 17, 2024

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.

(cherry picked from commit d2d7808)

Co-authored-by: Stevoisiak S.Vascellaro@gmail.com
Co-authored-by: Serhiy Storchaka storchaka@gmail.com


📚 Documentation preview 📚: https://cpython-previews--115584.org.readthedocs.build/

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.

(cherry picked from commit d2d7808)

Co-authored-by: Stevoisiak <S.Vascellaro@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0