Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
abarnert opened this issue Sep 29, 2012 · 2 comments
Closed

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

abarnert opened this issue Sep 29, 2012 · 2 comments

Comments

@abarnert
Copy link

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
Copy link

trevyn commented Nov 3, 2012

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

@axiak
Copy link
Owner

axiak commented May 15, 2015

Published a fix to pypi

@axiak axiak closed this as completed May 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants