[issue11947] re.IGNORECASE does not match literal "_" (underscore)

2011-04-29 Thread Robert Meerman
Robert Meerman added the comment: Oh, that's embarrassing. :-) Could a type-check be used to alert the user to their mistake? I suppose that would require re.IGNORECASE (et al) to be of some new type (presumably sub-classed from Integer). (Thanks for the quick response, and sorry to

[issue11947] re.IGNORECASE does not match literal "_" (underscore)

2011-04-28 Thread Robert Meerman
New submission from Robert Meerman : Regular expressions which are written match literal underscores ("_", ASCII ordinal 95) and specify `re.IGNORECASE` during compilation do not consistently match underscores: it seems some occurrences are matched, but others are not. The followi