正则匹配之匹配网页img

来源:互联网 发布:js正则表达式数字范围 编辑:程序博客网 时间:2024/05/20 22:29

http://china.nba.com/photos/为例

<?php $str = file_get_contents('http://china.nba.com/photos/'); $preg = preg_match_all('/<img(?:.*)src="(.*?)"(?:.*)>/', $str, $m); var_dump($m);



0 0
原创粉丝点击