Is it possible to use re2 from Python?

Vlastimil Brom vlastimil.brom at gmail.com
Sun Mar 14 21:49:56 CET 2010


2010/3/14 _wolf <wolfgang.lipp at gmail.com>:
>...
> i would like to use re2 from Python (preferrably Python 3.1) and was
> excited to see files like make_unicode_groups.py in the distro (maybe
> just used during the build process?). those however were not deployed
> on my machine.
>...
>

If you would need a re engine with features like unicode rangees,
script, and character properties classes and many others, you may try
the proposed implementation of the re library currently available in
python issue tracker:
http://bugs.python.org/issue2636
I am personally more than satisfied with this development version
sofar, however, as some new feature like unlimited lookarounds etc.
suggest, it is a classic backtracking engine (as opposed to re2, if
you need this very implementation).

hth
  vbr



More information about the Python-list mailing list