Message194568
Serhiy, yup, that regexp is slow, but it does finish - so the engine is doing something to avoid _unbounded_ repetitive matching of an empty string.
Change it to
(?:.?.+)*y
and the group can no longer match an empty string, but it's still slow (although about 3x faster, it's still exponential in the length of the string it fails to match). |
|
Date |
User |
Action |
Args |
2013-08-06 17:04:52 | tim.peters | set | recipients:
+ tim.peters, pitrou, larry, ezio.melotti, mrabarnett, Arfrever, eli.bendersky, python-dev, serhiy.storchaka |
2013-08-06 17:04:52 | tim.peters | set | messageid: <1375808692.73.0.232469988316.issue18647@psf.upfronthosting.co.za> |
2013-08-06 17:04:52 | tim.peters | link | issue18647 messages |
2013-08-06 17:04:52 | tim.peters | create | |
|