RE Module

Roman rgelfand2 at hotmail.com
Thu Aug 24 23:59:26 EDT 2006


I am trying to filter a column in a list of all html tags.

To do that, I have setup the following statement.

row[0] = re.sub(r'<.*?>', '', row[0])

The results I get are sporatic.  Sometimes two tags are removed.
Sometimes 1 tag is removed.   Sometimes no tags are removed.  Could
somebody tell me where have I gone wrong here?

Thanks in advance




More information about the Python-list mailing list