Closed abarnert closed 9 years ago
x=29; r, s = 'a?'_x+'a'_x, 'a'*x re2.match(r, s) 1 re2.search(r, s) 1 re2.compile(r).search(s) re2.compile(r).match(s)
By comparison:
re.match(r, s) <_sre.SRE_Match at 0x104cfc100>
… and likewise for the other three (to save you the 4 minutes or so to test for yourself:)).
See Issue #11; it looks like the 0.2.20 release on pypi is broken. Installing from github master fixed this for me.
Published a fix to pypi
By comparison:
… and likewise for the other three (to save you the 4 minutes or so to test for yourself:)).