怎么取出一个网页里的所有链接

]*?)href=([\'\"\s]?)([^>\'\"\s]+)([\'\"\s]?)([^>]*?)>(.+?) (.*)@is"; while(preg_match($ptn,$str,$reg)) { echo "-----------------------------------------------------------------------------------"; $count++; echo "〖".$reg[4]."〗 ```
``` "; echo $count."【".$reg[7]."】 ```
``` "; $str=$reg[1].$reg[8]; } ?>
Published At
Categories with Web编程
comments powered by Disqus