Python-based regular expression parser that allows patterns to call functions?

Andrew Warkentin andreww at datanet.ab.ca
Sun Mar 2 09:41:20 EST 2008


I am writing a filtering HTTP proxy (the site is 
http://xuproxy.sourceforge.net/). I want it to be compatible with 
Proxomitron (http://proxomitron.info/) filters. I need a regular 
expression parser that allows patterns to call functions (or more 
likely, class methods), to implement "matching commands" (look at the 
Proxmitron documentation to see what I mean). Does anyone know if such a 
library exists for Python, or do I have to write my own parser?



More information about the Python-list mailing list