tst2005googlecode / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Add python bindings #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can you add bindings for python? It would be great!

Thanks

Original issue reported on code.google.com by davide.s...@gmail.com on 27 Mar 2010 at 1:24

GoogleCodeExporter commented 9 years ago
There are some here http://github.com/facebook/pyre2 (although I haven't tested 
them)

Original comment by stefano.rivera on 27 Mar 2010 at 1:34

GoogleCodeExporter commented 9 years ago
It says:
 "Unlike most automata-based engines, RE2 implements almost all the common Perl and
PCRE features and syntactic sugars. It also finds the leftmost-first match, the 
same
match that Perl would, and can return submatch information. The one significant
exception is that RE2 drops support for backreferences¹ and generalized 
zero-width
assertions, "
 So, Comparing to Python or Perl's regexps syntax and latest features, what other
syntax/features haven't been implemented in re2 yet (besides backreference and
generalized zero-width assertions)? 
Is there a black-list for that?

Original comment by delia...@gmail.com on 28 Mar 2010 at 2:03

GoogleCodeExporter commented 9 years ago
The next sentence after what you've quoted from the home page reads:

    The syntax page gives full details.

Click on the syntax page link.

Original comment by rsc@golang.org on 28 Mar 2010 at 5:59

GoogleCodeExporter commented 9 years ago
Yup, that's a 'white-list', but a black one with the list of all features have 
not been supported/implemented yet is much easy to see, re2-users can 
keep those points in mind and do not make subtle mistakes while using re2.
And also, it helps others developers that interested with re2 to make an effort 
on those missing features. That's helpful.

Original comment by delia...@gmail.com on 28 Mar 2010 at 2:08

GoogleCodeExporter commented 9 years ago
@delianxu: Maybe it doesn't show up correctly in your web browser,
but the list lists all the Python and Perl syntax I am aware of too.
The things that RE2 does not support are grayed out, as it says at
the top of the page.

Original comment by rsc@google.com on 29 Mar 2010 at 4:19

GoogleCodeExporter commented 9 years ago
@stefano.rivera: this binding has no findall() and finditer()... :-(

Original comment by davide.s...@gmail.com on 29 Mar 2010 at 8:41

GoogleCodeExporter commented 9 years ago
This issue was closed by revision aff8c1839c.

Original comment by rsc+personal@swtch.com on 29 Mar 2010 at 6:19