获取文章内所有图片

来源:互联网 发布:和皮影客累似的软件 编辑:程序博客网 时间:2024/04/28 15:43
$regexp = '/(<img[^>]*src=".*?(?:pre\.gif|next\.gif)"[^>]*>)/i';$iResults = preg_match_all($regexp, $str, $aMatches);print_r($aMatches); // you'll see what you need

原创粉丝点击