axiak / pyre2

Python wrapper for RE2
BSD 3-Clause "New" or "Revised" License
295 stars 39 forks source link

re2.search/match return 1; pattern methods return None #14

Closed abarnert closed 9 years ago

abarnert commented 12 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:)).

trevyn commented 11 years ago

See Issue #11; it looks like the 0.2.20 release on pypi is broken. Installing from github master fixed this for me.

axiak commented 9 years ago

Published a fix to pypi