in reply to Re: Regex/Pattern Matching
in thread Regex/Pattern Matching
Hi Bart
Thanx for your suggestions. Im very very new to perl so Im not even sure how to sue the modules properly leave alone create my own classes.
Anyway ill see what I can do tho i dint quite understand the concept of the BBc class.
Hmm as for grabbing the data, I did use HTML::TokeParser::Simple, LWP::UserAgent and HTML::Parser but once I get the HTML into an external file on my hardisk i don't exactly know how to search for the headings and only grab data under a particular heading.
The data is like
HEADING 1
<data>
<data>
PUBLICATION
<data>
<data>
<data>
RESEARCH
<data>
..
.
. so on
and I need to grab the data under PUBLICATION. Now the heading may differ from page to page but i was trying to match 'pub' but thr r other headings also tht mite have those words!
It would be great if you could help me with a code snippet.
Thnx a lot
Shuchi