Skip to content

gh-101699: Explain using Match.expand with \g<0> - #101701

Merged
serhiy-storchaka merged 3 commits into
python:mainfrom
Stevoisiak:explain-expand-group-0
Feb 17, 2024
Merged

serhiy-storchaka merged 3 commits into
python:mainfrom
Stevoisiak:explain-expand-group-0

Conversation

@Stevoisiak

@Stevoisiak Stevoisiak commented Feb 8, 2023 •

Copy link
Copy Markdown
Contributor

Update documentation for re library to explain that a backreference to group0 (\g<0>) is expanded to the entire string when using Match.expand(). Note that numeric backreferences to group 0 (\0) are not supported. (See https://stackoverflow.com/q/58134893/3357935)

Update documentation for `re` library to explain that a backreference to group0 (`\g<0>`) is expanded to the entire string when using `Match.expand()`. Note that numeric backreferences to group 0 (`\0`) are not supported. (See https://stackoverflow.com/q/58134893/3357935)
@Stevoisiak

Stevoisiak commented Feb 8, 2023 •

Copy link
Copy Markdown
Contributor Author

My apologies for the multiple pull requests and review tags from changing the branch. It was unintentional.

Comment thread Doc/library/re.rst Resolved
@miss-islington-app

Copy link
Copy Markdown

Thanks @Stevoisiak for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Feb 17, 2024

Copy link
Copy Markdown

GH-115583 is a backport of this pull request to the 3.12 branch.

@bedevere-app

bedevere-app Bot commented Feb 17, 2024

Copy link
Copy Markdown

GH-115584 is a backport of this pull request to the 3.11 branch.

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 topic-regex

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants