re.sub() loops

Andreas Jung ajung at sz-sb.de
Sat Apr 17 09:59:07 EDT 1999


I am trying to do some lame HTML processing with some
HTML. The following lines tries to remove some
unneccessary code from a HTML file. However python hangs
in this call:

data = re.sub('<TABLE.*?es.*?da.*?en.*?fi.*?sv.*?TABLE>','',data)    

Any idea why ? My env: Python 1.5.2 under Solaris 2.5.1 - 7.0.

Andreas





More information about the Python-list mailing list