Dan*_*ert 2 ruby regex mechanize
我正在尝试使用Mechanize link_with(:href =>'anchor here')来查找与href中某个字符串有链接的页面.例如,我想要它,以便我可以将所有具有链接的网站吐出到文本文件中,其中锚包含"index.php?user"
我该怎么做?
Dan*_*ert 5
谢谢大家的回答,我最终选择了page.link_with(:href => /(.*)?user$/)
归档时间:
14 年 前
查看次数:
3192 次
最近记录: