SIGN IN SIGN UP

gh-91524: Speed up the regular expression substitution (#91525)

Functions re.sub() and re.subn() and corresponding re.Pattern methods
are now 2-3 times faster for replacement strings containing group references.

Closes #91524

Primarily authored by serhiy-storchaka Serhiy Storchaka
Minor-cleanups-by: Gregory P. Smith [Google] <greg@krypto.org>
S
Serhiy Storchaka committed
75a6fadf369315b27e12f670e6295cf2c2cf7d7e
Parent: 176b6c5
Committed by GitHub <noreply@github.com> on 10/23/2022, 10:57:30 PM