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

basic usage doesn't seem to work #24

Closed
icarmi opened this issue Apr 13, 2014 · 3 comments
Closed

basic usage doesn't seem to work #24

icarmi opened this issue Apr 13, 2014 · 3 comments

Comments

@icarmi
Copy link

icarmi commented Apr 13, 2014

Running re2, this is what I get:

import re2
o = re2.compile(r"test")
1
print o.search("test")
None

While a similar run on re gives me:

import re
x = re.compile(r"test")
print x.search("test")
<_sre.SRE_Match object at 0x7f974fb3b1d0>

Two key differences:

  1. compile prints out "1" to the screen, for some reason.
  2. search doesn't find anything.

Am I doing something obviously wrong?
I'm running the latest (0.2.20) with google's latest (re2-20140304)

Thanks!
Ido

@kmike
Copy link

kmike commented Apr 13, 2014

I believe it is fixed in master, but not in pypi package. See #17 and #11.

@icarmi
Copy link
Author

icarmi commented Apr 13, 2014

Yup, that fixed it, thanks!

@axiak
Copy link
Owner

axiak commented May 15, 2015

fixed

@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