J
jack
I don't want to pester, but i have just one more follow up to this script
I'm writing:
The files I'm pulling has bylines in them. If I do this:
($byline, $title) = $_ =~ /By\s?(.*)<br><br>([A-Za-z
]+)<br><br>.*$/;
#($firstgraph) = $_ =~ /<p>(.*)<br><br>([A-Za-z ]+)<br><br>.*$/;
print "By: $byline\n\n";
print "Title: $title\n";
Then it will print out the Byline and title. Bingo, no problem. But, If I do
this:
$_ =~ s/By.*<br><br>.*<br><br>/g;
It will erase everthing up UNTIL the last two <br> tags -- which eliminates
the whole story except the last paragraph! How do I tell to only go through
the first and second sets of <br> tags?
(FYI, i'm trying to remove the byline and title so I can do nifty things,
like print out the first paragraph on an index page and correctly format the
byline later.
I'm writing:
The files I'm pulling has bylines in them. If I do this:
($byline, $title) = $_ =~ /By\s?(.*)<br><br>([A-Za-z
]+)<br><br>.*$/;
#($firstgraph) = $_ =~ /<p>(.*)<br><br>([A-Za-z ]+)<br><br>.*$/;
print "By: $byline\n\n";
print "Title: $title\n";
Then it will print out the Byline and title. Bingo, no problem. But, If I do
this:
$_ =~ s/By.*<br><br>.*<br><br>/g;
It will erase everthing up UNTIL the last two <br> tags -- which eliminates
the whole story except the last paragraph! How do I tell to only go through
the first and second sets of <br> tags?
(FYI, i'm trying to remove the byline and title so I can do nifty things,
like print out the first paragraph on an index page and correctly format the
byline later.