FYI- If you are really interested in regular expression performance, I suggest reading this short paper: http://swtch.com/~rsc/regexp/regexp1.html There is an old feature request bug to get this into the Python library: http://bugs.python.org/issue1662581 There are various implementations floating around the net if you search... -- David