Hi Sluggers:

I am using pattern matching to break an html file to capture the data I want.

First The file for the data I am trying to pattern match is located at:

http://soccerlist.imarketingbiz.com/minileague.html

I am trying to extract all the data from the table under the "Team",
"Manager", "TP" stuff.

After studying the html for this particular stuff I have tried a few things
like these:

1.  if ($_ =~ m/<font size=1 face=Verdana color=#FFFFFF>(\w+)<\/font>/g)
(This just return "TP" only and not the others I want as well).

2. if ($_ =~ m/<tr><td\s*(.*)><font size=1 face=Verdana
color=#FFFFFF>(.*)<\/font><\/td><td\s*(.*)><font size=1 face=Verdana
color=#FFFFFF>(.*)<\/font><\/td><td\s*(.*)><font size=1 face=Verdana
color=#FFFFFF>(.*)<\/font><\/td><td\s*(.*)><font size=1 face=Verdana
color=#FFFFFF>(.*)<\/font><\/td><\/tr>/g)
(This just returns the last 0).

3. As a test I just printed each line as it's read from ($_), I noticed that
the whole section I want is printed as a sinle string when $_ gets to it.

Any ideas on how I can get each portion I want would be greatful.

I am trying a few other things as well.

Thanks in advance.

Louis.


--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to