in reply to WWW::Mechanize find_link question.
Now, if you wanted to match the last url in your document that specifically linked an image (if there were more links that you want to ignore that follow the image link):# If you have a link that includes a space, # then remove the space from the last set of brackets ($linkloc) = ($html =~ m/.*href=["']([^"'> ]+)/s);
($linkloc) = ($html =~ m/.*href=["']([^"'> ]+)[^>]*>\s*<img/s);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: WWW::Mechanize find_link question.
by merlyn (Sage) on May 13, 2005 at 02:49 UTC | |
by Adrade (Pilgrim) on May 13, 2005 at 06:41 UTC | |
by merlyn (Sage) on May 13, 2005 at 10:11 UTC | |
by Adrade (Pilgrim) on May 13, 2005 at 16:54 UTC | |
by tphyahoo (Vicar) on May 13, 2005 at 09:41 UTC |