How can I extract all links from the page excluding one using perl's WWW::Mechanize ?

Posted by planetp on Stack Overflow See other posts from Stack Overflow or by planetp
Published on 2010-03-26T12:06:16Z Indexed on 2010/03/26 12:33 UTC
Read the original article Hit count: 337

Filed under:
|

I'm trying to use WWW::Mechanize to extract some links from the HTML-page using find_all_links() method. It supports matching on these criterias:

  • text
  • text_regex
  • url
  • url_regex
  • url_abs
  • url_abs_regex
    ...

How can I extract all links except one that has text "xyz"?

© Stack Overflow or respective owner

Related posts about perl

Related posts about www-mechanize