获取文章内所有图片

$regexp = '/(<img[^>]*src=".*?(?:pre\.gif|next\.gif)"[^>]*>)/i'; $iResults = preg_match_all($regexp, $str, $aMatches); print_r($aMatches); // you'll see what you need 

你可能感兴趣的:(获取文章内所有图片)