Closed GoogleCodeExporter closed 9 years ago
Fixed in regex 0.1.20121216.
The bug was to do with a repeated character, as in ".+". It didn't matter that
there was a slash; it could happen with other characters too.
Original comment by re...@mrabarnett.plus.com
on 16 Dec 2012 at 9:13
Thank you very much for the quick update;
I most likely misinterpreted some pattern properties, which turned out to be
irrelevant. I wasn't quite able to narrow down the problematic pattern, as e.g.
>>> regex.findall(r"c..+x", "cAx\ncAbx")
['cAbx']
and others without slash worked ok already;
Anyway, I am glad, it is fixed now.
thanks,
vbr
Original comment by Vlastimil.Brom@gmail.com
on 16 Dec 2012 at 11:02
You changed two things there: you replaced the slash with "x", and you made it
shorter by removing the following "c". The regex module combines two or more
literal characters into a string, so you might get a different behaviour when
it comes to bugs.
An example of it not working even with the slash changed would have been:
regex.findall(r"c..+xc", "cAxc\ncAbxc")
Original comment by re...@mrabarnett.plus.com
on 16 Dec 2012 at 11:28
Ok,
thanks for the explanation;
vbr
Original comment by Vlastimil.Brom@gmail.com
on 16 Dec 2012 at 11:43
Original issue reported on code.google.com by
Vlastimil.Brom@gmail.com
on 16 Dec 2012 at 8:23