Clipping ALL Occurrences of a Regex in an HTML File?

2005-02-09 Thread Dan Armstrong
I'm using a regular expression to extract text from an html file. My code: while (<>) { if(/\(.*?)<\/FONT>/) { print "$1\n"; } } When I run it on a this big glom of html, I get only the first occurrence, the words LA BELLE EPOQUE. Summary of Latest Inspection LA BELLE

Specifying tag attributes in TokeParser

2005-01-21 Thread Dan Armstrong
I am trying to strip zip codes out of a table which looks like this: 10001 NY 212 NEW YORK 40.7496 -73.9971 The zip code is between the tags and . Now, the code below outputs all text inside all pairs: use HTML::TokeParser; my $file = shift; my $p =

Using LWP to Browse a Perl Page

2005-01-12 Thread Dan Armstrong
I've been reading this list every day for a week or so, and it's a great resource. I'm trying to use a GET or POST command to click on a link at this address: http://ibihost1.com/nycdoh/web/html/rii.pl As you can see, the address points to a Perl script. When you click on a button on this page,