On Thu, Feb 17, 2000 at 04:26:31PM -0500, Peter Lee wrote:
> 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):
<snip>
On the example you give, this worked for me:
@numbers = ($string =~ m#<b>(\d+)</b>#g);
This searches for any string of one or more digits between
begin/end bold tags, and returns an array of said strings of
digits.
If you need to add this array, something like this should work:
push @numbers, ($string =~ m#<b>(\d+)</b>#g);
Good luck.
-- Larry
--
Larry Clapp / hm: [EMAIL PROTECTED]
"Argue with your boss if you have to. A year of uptime is worth
a week of delay." -- Seen on /.