Re: Create a string array of all comments in a html file...
- From: Paul McGuire <ptmcg@xxxxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 13:49:41 -0700
On Sep 30, 10:39 am, sophie_newbie <paulgeele...@xxxxxxxxx> wrote:
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.
.... here -->And <i>so</i> funny!from pyparsing import htmlComment
htmlComment.searchString("""<!-- Comment
.... </p><!-- Comment <> -->""").asList()
[['<!-- Comment \nhere -->'], ['<!-- Comment <> -->']]
-- Paul
.
- References:
- Create a string array of all comments in a html file...
- From: sophie_newbie
- Create a string array of all comments in a html file...
- Prev by Date: Re: GUI for viewing/editing python data structures?
- Previous by thread: Re: Create a string array of all comments in a html file...
- Next by thread: ANN: eric 4.0.2 released
- Index(es):