Message152232
r'[\w]' also matches word chars. I find that a very useful property, since you can easily build classes like '[\w.]' It's also impossible to change this without breaking lots of regexes. It's also explicitly documented, although IMO it's not clear it extends to \A and \Z, since it talks about "character classes". So this is a docs issue. |
|
Date |
User |
Action |
Args |
2012-01-29 14:35:57 | georg.brandl | set | recipients:
+ georg.brandl, sjmachin, ezio.melotti, mrabarnett, docs@python |
2012-01-29 14:35:57 | georg.brandl | set | messageid: <1327847757.59.0.900675021568.issue13899@psf.upfronthosting.co.za> |
2012-01-29 14:35:57 | georg.brandl | link | issue13899 messages |
2012-01-29 14:35:56 | georg.brandl | create | |
|