我正在尝试使用Mechanize link_with(:href =>'anchor here')来查找与href中某个字符串有链接的页面.例如,我想要它,以便我可以将所有具有链接的网站吐出到文本文件中,其中锚包含"index.php?user"
我该怎么做?
ruby regex mechanize
mechanize ×1
regex ×1
ruby ×1