in reply to Re: Re: Retreive, modify, & display webpage
in thread Retreive, modify, & display webpage

If STF1A and STF3A are the only two strings you'll ever want to match you might consider changing it to this:
m|<a href=(.*?)>(STF1A|STF3A)</a>|
But that won't necessarily address why it isn't matching. If the urls you're parsing are broken on multiple lines like that you'll need to add the 's' modifier so that the .*? will match newlines as well:
m|<a href=(.*?)>(STF1A|STF3A)</a>|
HTH

Replies are listed 'Best First'.
Re: Re: Re: Re: Retreive, modify, & display webpage
by Sang (Acolyte) on Jan 04, 2002 at 00:45 UTC
    I figured it out actually, I don't understand it, but I figured it out. If you move the
    $url =~ s/CMD=TABLES/CMD=RET/;
    line into the if block works fine, if you don't it will only grab the "Map" links.