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

In reply to Re: Re: Regex/Pattern Matching by shu
in thread Regex/Pattern Matching by shu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.