Create a string array of all comments in a html file...

sophie_newbie paulgeeleher at gmail.com
Sun Sep 30 11:39:35 EDT 2007


Hi, I'm wondering how i'd go about extracting a string array of all
comments in a HTML file, HTML comments obviously taking the format
"<!-- Comment text here -->".

I'm fairly stumped on how to do this? Maybe using regular expressions?

Thanks.




More information about the Python-list mailing list