preg_match_all("/<img[^<>]*src=\"([^\"]+)\"[^<>]*>/i",$str,$matches);
print_r($matches[1]);