V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
tangyuan
V2EX  ›  问与答

自动从网页中提出所选中内容正则的工具、插件

  •  
  •   tangyuan · Aug 4, 2013 · 3185 views
    This topic created in 4649 days ago, the information mentioned may be changed or developed.
    正则那个难啊...请问有chrome或者ff下面通过选中内中自动生成正则的工具或插件吗?感谢!
    5 replies    1970-01-01 08:00:00 +08:00
    binux
        1
    binux  
       Aug 4, 2013
    没有,提取xpath/css selector还差不多
    正则的话,你怎么知道页面里面的内容就是你GET回来的内容?
    tangyuan
        2
    tangyuan  
    OP
       Aug 4, 2013
    @binux 谢谢binux,那请问有什么工具能实时看到自己写的正则结果的呢
    Perry
        3
    Perry  
       Aug 4, 2013
    我一直用这个: http://rubular.com/
    lemonda
        4
    lemonda  
       Aug 4, 2013   ❤️ 1
    先把选中部分代码放到
    http://www.txt2re.com/index.php3
    然后用
    http://www.gskinner.com/RegExr/desktop/
    测试调整下
    wingoo
        5
    wingoo  
       Aug 4, 2013
    scraper
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1061 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 18:49 · PVG 02:49 · LAX 11:49 · JFK 14:49
    ♥ Do have faith in what you're doing.