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 SIZE=2 COLOR=#FF(.*?)\/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. !DOCTYPE HTML PUBLIC -//IETF//DTD

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: tr class=black12Arial td bgcolor=#dc10001/td td BGCOLOR=ffNY/td td BGCOLOR=ff212/td td BGCOLOR=ffNEW YORK/td td BGCOLOR=ff40.7496/td td BGCOLOR=ff-73.9971/td The

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,