fast regex

Javier Collado javier.collado at gmail.com
Thu May 6 11:31:46 EDT 2010


Hello,

2010/5/6 james_027 <cai.haibin at gmail.com>:
> I was working with regex on a very large text, really large but I have
> time constrained. Does python has any other regex library or string
> manipulation library that works really fast?

re2 (http://code.google.com/p/re2/) is suppossed to be faster than the
standard library in python. Unfortunately, it's implemented in C++ and
there isn't an official python wrapper for it. However, you can find a
wrapper that can be useful for you here:
http://github.com/facebook/pyre2

Best regards,
    Javier



More information about the Python-list mailing list