Message120976
Maybe I am missing something, but the result in regex seem ok to me:
\A is treated like A in a character set; when the test string is changed to "A b c" or in the case insensitive search the A is matched.
[\A\s]\w doesn't match the starting "a", as it is not followed by any word character:
>>> for s in [r'\A\w', r'[\A]\w', r'[\A\s]\w']: print regex.findall(s, 'A b c')
...
['A']
[]
[' b', ' c']
>>> for s in [r'\A\w', r'(?i)[\A]\w', r'[\A\s]\w']: print regex.findall(s, 'a b c')
...
['a']
[]
[' b', ' c']
>>>
In the original re there seem to be a bug/limitation in this regard (\A and also \Z in character sets aren't supported in some combinations...
vbr |
|
Date |
User |
Action |
Args |
2010-11-11 22:20:16 | vbr | set | recipients:
+ vbr, loewis, georg.brandl, collinwinter, gregory.p.smith, jimjjewett, sjmachin, amaury.forgeotdarc, pitrou, nneonneo, giampaolo.rodola, rsc, timehorse, mark, ezio.melotti, mrabarnett, jaylogan, akitada, moreati, r.david.murray, jacques, jhalcrow |
2010-11-11 22:20:15 | vbr | set | messageid: <1289514015.98.0.45902801935.issue2636@psf.upfronthosting.co.za> |
2010-11-11 22:20:14 | vbr | link | issue2636 messages |
2010-11-11 22:20:13 | vbr | create | |
|