This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2001年06月14日 08:26 by effbot, last changed 2022年04月10日 16:04 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg53160 - (view) | Author: Fredrik Lundh (effbot) * (Python committer) | Date: 2001年06月14日 08:26 | |
from the jeffrey friedl report: The way (?i) works now is that if it appears anywhere in the regex, it turns on case-insensative matching for the entire regex. This is different (and less useful) than how Perl or Sun's Java package does it [I'm pretty sure SRE does it this way to exactly match the version of PCRE used in 1.5.2, but maybe it's time to move forward... /F] |
|||
| msg63644 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2008年03月17日 14:01 | |
This is still a valid issue. (As of Python 2.6a1+ (trunk:61434, Mar 17
2008, 08:06:54).)
>>> bool(re.match("abc(?i)","AbC"))
True
The documentation says that the behavior of a regex with (?<letter>) not
at the beginning is undefined.
Short of implementing Java/Perl behavior, this should be made an error
rather than undefined so that users porting their code from Java/Perl
get an early warning.
|
|||
| msg73685 - (view) | Author: Matthew Barnett (mrabarnett) * (Python triager) | Date: 2008年09月24日 00:38 | |
Implemenetd in #3825. |
|||
| msg114617 - (view) | Author: Georg Brandl (georg.brandl) * (Python committer) | Date: 2010年08月22日 00:03 | |
I don't think this should be changed anymore, at least not without a flag. Anyway, it is implemented in #2636. |
|||
| msg230851 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年11月08日 12:27 | |
See also issue22493. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月10日 16:04:07 | admin | set | github: 34623 |
| 2014年11月08日 12:27:50 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka messages: + msg230851 |
| 2010年08月22日 00:03:21 | georg.brandl | set | status: open -> closed nosy: + georg.brandl messages: + msg114617 superseder: Major reworking of Python 2.5.2 re module -> Adding a new regex module (compatible with re) |
| 2010年08月07日 21:00:30 | terry.reedy | set | resolution: out of date superseder: Major reworking of Python 2.5.2 re module versions: + Python 3.2, - Python 2.6 |
| 2009年02月12日 19:35:13 | ajaksu2 | set | dependencies:
+ Major reworking of Python 2.5.2 re module versions: + Python 2.6 |
| 2008年09月24日 11:28:31 | timehorse | set | nosy: + timehorse |
| 2008年09月24日 00:38:24 | mrabarnett | set | nosy:
+ mrabarnett messages: + msg73685 |
| 2008年04月24日 21:12:50 | rsc | set | nosy: + rsc |
| 2008年03月17日 14:01:51 | belopolsky | set | nosy:
+ belopolsky messages: + msg63644 |
| 2001年06月14日 08:26:00 | effbot | create | |