Regex Speed
Kirk Sluder
kirk at nospam.jobsluder.net
Wed Feb 21 14:40:57 EST 2007
In article <1172049029.217002.55560 at v33g2000cwv.googlegroups.com>,
"John Machin" <sjmachin at lexicon.net> wrote:
> Getting back to the "It would be nice ..." bit: yes, it would be nice
> to have even more smarts in re, but who's going to do it? It's not a
> "rainy Sunday afternoon" job :-)
Well, just as an idea, there is a portable C library for this at
http://laurikari.net/tre/ released under LGPL. If one is willing to
give up PCRE extensions for speed, it might be worth the work to
wrap this library using SWIG.
The cheap way in terms of programmer time is to pipe out to grep or
awk on this one.
More information about the Python-list
mailing list