Thanks gents - these are all quite useful. I tamed-down the HTML a bit in my original post. It was actually a bit uglier. Here's my results w/ the 3 examples:
local $/ = "<br>"; while ( <DATA> ) { print $1 if /Title:(.*?)<br>/s; }
This works nice, but I got a lot of white spaces. Also, for some reason, I was getting an extra <\\b> in addition to the STRING_I_WANT. Easy to take out, but seem my question at the bottom if you could. #2:
$whole_file =~ /Title:.*?</b>(.*?)<br>/ms;
I actually assumed this would be the easiest way. I tried:
undef $/; chomp($whole_file = <IN>); $whole_file =~ s/.*?Title:.*?<\/b>(.*?)<br>/$1/ ; print "$whole_file";
The only thing this got me was the whole file printed out. :(

#3
while ( <DATA> ) { print if /<b>/ .. /<br>/; }
This worked well. It would print out the whole line if it found something that fit in the range description. But I'm curiuos on one thing on this and the first example - how would I put the value into a variable when using the
print if /<b>/ .. /<br>/;
Thanks for your help. I'm making some progress but I'm still "in the books", so there's quiet a few tricks I've still yet to learn.

In reply to Re: Re: Help with getting everything from X until Y by Anonymous Monk
in thread Help with getting everything from X until Y by Anonymous Monk

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.