hunk
V2EX  ›  问与答

正则求教

  •  
  •   hunk · May 25, 2016 · 1564 views
    This topic created in 3696 days ago, the information mentioned may be changed or developed.

    $.get("/webfile/zhengzhou/cgxx/cggg/webinfo/2016/05/1463997462314129.htm", function (data) {

    提取页面地址,正则咋写?

    1 replies    2016-05-25 15:39:41 +08:00
    hunk
        1
    hunk  
    OP
       May 25, 2016
    自己生拼出来的,过滤了 html ,有重复,勉强能用。
    r'(\$.get\("([^\s]+)"\,)'
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2855 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:09 · PVG 23:09 · LAX 08:09 · JFK 11:09
    ♥ Do have faith in what you're doing.