I've been trying to pull about a bunch of numbers out of a really long
line of HTML. Luckily they're all bounded by bold tags, but i'm not quite
sure how to go about pulling the information.
This is an example of what I want to parse (the stuff between the bold
tags):
<table border="0" cellpadding="5" cellspacing="0" width="590"><tr><td
valign="top" width="40%"><strong>Overall profile makeup</strong><table
border="0"cellpadding="0" cellspacing="0"
width="100%"><tr><td><br></td></tr><tr><td width="5%"> </td><td
width="95%"><font size="3"><b>8</b> <font color="green">positives</font>.
<b>8</b> are from unique users and count toward the final rating.
</font><p\><font size="3"><b>0</b> neutrals. <b>0</b> are from users <a,
etc, etc, except all as one line.
I thought this up:
if(m/<b>/) {
$_ = $';
}
if(/<\/b>/) {
$_ = $`;
print "$_\t";
}
but it doesn't really work.
Thanks: i'm feeling very much the neophyte,
peter