麻烦帮忙看下正则那里不对啊挖个图片地址
<?php
$str='<img width="192" height="82" alt="" src="/userfiles/image/paopao_9.jpg" /><img width="192" height="82" alt="" src="http://www.baidu.com" />';
$reg ="/<img\s+[^>]*src=\"([^http]+?)\"\s+\/>/i";
preg_match_all($reg,$str,$pics);
var_dump($pics);
?>
图片地址是$str的模式
我要挖不含http的地址出来
用非贪婪 就是匹配不到啊