> 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.
actually there is a python binding in the tre source with an example python script so it is already done. -- http://mail.python.org/mailman/listinfo/python-list