Message120038
And another, bit less pathological, testcase. Sorry for the ugly testcase; it was much worse before I boiled it down :-)
$ cat test.py
import re, regex
text = "\nTest\nxyz\nxyz\nEnd"
regexp = '(\nTest(\n+.+?){0,2}?)?\n+End'
print re.findall(regexp, text)
print regex.findall(regexp, text)
$ python test.py
[('\nTest\nxyz\nxyz', '\nxyz')]
[('', '')] |
|
Date |
User |
Action |
Args |
2010-10-31 06:09:30 | 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-10-31 06:09:30 | jacques | set | messageid: <1288505370.09.0.175977604485.issue2636@psf.upfronthosting.co.za> |
2010-10-31 06:09:28 | jacques | link | issue2636 messages |
2010-10-31 06:09:27 | jacques | create | |
|