You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
re.sub is only replacing max. of 2 string found by regexp. #79724
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-12-20.08:32:12.140>created_at=<Date2018-12-20.08:26:30.724>labels= ['invalid', 'type-bug', 'library']
title='re.sub is only replacing max. of 2 string found by regexp.'updated_at=<Date2018-12-20.08:32:12.138>user='https://bugs.python.org/saga'
Activity
saga commentedon Dec 20, 2018
Below are the logs:
serhiy-storchaka commentedon Dec 20, 2018
The third argument of re.sub() is the maximal number of replacements. re.I == 2.