Skip to content

Conversation

@mattwang44
Copy link
Collaborator

related issue: #631

Copy link
Collaborator

@beccalzh beccalzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review part 1: rst:1001

"``\\g<number>`` 使用對應的群組編號;因此 ``\\g<2>`` 等價於 ``\\2``,但在諸如 "
"``\\g<2>0`` 之類的替換中並非模糊不清 (isn't ambiguous)。``\\20`` 將被直譯為對"
"群組 20 的參照,而不是對後面跟著字面字元 ``'0'`` 的群組 2 的參照。反向參照 "
"``\\g<0>`` 會取代以 RE 所匹配到的整個子字串。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

想問個replacesubtitute,有需要統一分別翻成替換取代嗎?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

還好欸我覺得及意且通暢就好

@mattwang44 mattwang44 requested a review from beccalzh February 7, 2025 08:42
@mattwang44 mattwang44 merged commit cc8bdcc into python:3.13 Feb 23, 2025
1 check passed
@mattwang44 mattwang44 deleted the re-func-exc branch February 23, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants