SIGN IN SIGN UP

Issue #25953: re.sub() now raises an error for invalid numerical group

reference in replacement template even if the pattern is not found in
the string.  Error message for invalid group reference now includes the
group index and the position of the reference.
Based on patch by SilentGhost.
S
Serhiy Storchaka committed
ee8337a99d55d42eec558cb862ce08ec37d5b9c6