[PHP]取html所有img标签的src属性值

preg_match_all('/]*?src="([^"]*?)"[^>]*?>/i',$str,$match);
echo $match[1];

你可能感兴趣的:(PHP,html,img,src,php,正则表达式)