-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
SRE: (?flag) isn't properly scoped #34623
Comments
from the jeffrey friedl report: The way (?i) works now is that if it appears anywhere [I'm pretty sure SRE does it this way to exactly |
This is still a valid issue. (As of Python 2.6a1+ (trunk:61434, Mar 17 >>> bool(re.match("abc(?i)","AbC"))
True The documentation says that the behavior of a regex with (?<letter>) not Short of implementing Java/Perl behavior, this should be made an error |
Implemenetd in bpo-3825. |
I don't think this should be changed anymore, at least not without a flag. Anyway, it is implemented in bpo-2636. |
See also bpo-22493. |
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: