<form id="hz9zz"></form>
  • <form id="hz9zz"></form>

      <nobr id="hz9zz"></nobr>

      <form id="hz9zz"></form>

    1. 明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

      正則表達式例子:獲得某個頁面上的所有超褳接

      [摘要]<html><head><title>正則表達式</title></head><body><a href="....

      <html>
      <head><title>正則表達式</title></head>
      <body>
      <a href="./">返回列表</a><br>
      <form action="<?echo $PHP_SELF;?>" method="post">
      URL:<input type="text" name="url" value="<?echo $url?>"><input type="submit" value="獲取所有褳接">
      </form>
      <?
      if(isset($url)){
      echo "$url 有下列褳接:<br>";
      $fcontents = file($url);
      while(list(,$line)=each($fcontents)){
      while(eregi('(href[[:space:]]*=[[:space:]]*"?[[:alnum:]:@/._-]+"?)(.*)',$line,$regs)){
      $regs[1] = eregi_replace('(href[[:space:]]*=[[:space:]]*"?)([[:alnum:]:@/._-]+)("?)',"\\2",$regs[1]);
      echo "    $regs[1]<br>";
      $line = $regs[2];
      }
      }
      }
      ?>
      </body>
      </html>







      日韩精品一区二区三区高清