Message152195
This happens because \A, \B and \Z are valid escape sequences[0].
If what you mean is that they shouldn't be recognized as such inside a character class, then I can agree with that.
^ and $ are similar to \A and \Z but they are considered as literals inside []. I think the same could also be applied to \b and \B, unless you expect r'[\b]' to match the same as r'\b'.
(On an unrelated note, it's preferable to avoid using ints as flag -- using re.DEBUG is better)
[0]: http://docs.python.org/library/re.html#regular-expression-syntax |
|
Date |
User |
Action |
Args |
2012-01-28 22:42:34 | ezio.melotti | set | recipients:
+ ezio.melotti, sjmachin, mrabarnett |
2012-01-28 22:42:34 | ezio.melotti | set | messageid: <1327790554.32.0.914804527022.issue13899@psf.upfronthosting.co.za> |
2012-01-28 22:42:33 | ezio.melotti | link | issue13899 messages |
2012-01-28 22:42:33 | ezio.melotti | create | |
|