Message120202
OK, I think this might be the last one I will find for the moment:
$ cat test.py
import re, regex
text = "test?"
regexp = "test\?"
sub_value = "result\?"
print repr(re.sub(regexp, sub_value, text))
print repr(regex.sub(regexp, sub_value, text))
$ python test.py
'result\\?'
'result?' |
|
Date |
User |
Action |
Args |
2010-11-02 02:49:47 | jacques | set | recipients:
+ jacques, loewis, georg.brandl, collinwinter, gregory.p.smith, jimjjewett, sjmachin, amaury.forgeotdarc, pitrou, nneonneo, giampaolo.rodola, rsc, timehorse, mark, vbr, ezio.melotti, mrabarnett, jaylogan, akitada, moreati, r.david.murray, jhalcrow |
2010-11-02 02:49:47 | jacques | set | messageid: <1288666187.24.0.0719987410046.issue2636@psf.upfronthosting.co.za> |
2010-11-02 02:49:45 | jacques | link | issue2636 messages |
2010-11-02 02:49:45 | jacques | create | |
|