4perl has asked for the wisdom of the Perl Monks concerning the following question:
Hi everyone
I am having a bit of trouble understanding the methods in HTML::Parser.
My task is basically to parse lines in html files and every line is of structure. Consider the:
"{div class="message1"} {span class="date"} yyyy-mm-dd hh:mm:ss {/span} {span class="id"} id1 {/span} {span class="resource"} text1 {/span} - > {span class="id"} id2 {/span} {span class="resource"} text2 {/span} {span class="messagetext"} texttext {/span} {/div}"
What I want to obtain is a file with lines having only the data, with \t between every chunk of text si I can play with it further.
Any help is kindly appreciated. Curly brackets used to keep structure visible.
Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Parser guidance
by smls (Friar) on May 28, 2013 at 15:39 UTC | |
|
Re: HTML::Parser guidance
by ww (Archbishop) on May 28, 2013 at 15:08 UTC | |
by smls (Friar) on May 28, 2013 at 16:55 UTC |