-
-
Notifications
You must be signed in to change notification settings - Fork 32k
re.sub not replacing all #61863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
fails to replace last occurrence of string v_wofstgvw, reproduced in 3.2.3, 3.2.4 and 3.3.1 a=''' -- V_INT_CTRC_ENTRY_DATE re.sub('v_wofstgvw','d_dscteve', a, re.MULTILINE, re.IGNORECASE) |
The fourth argument to re.sub is the replacement count. You've passed it a flag. |
See bpo-11957. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: