function get_img($html) { preg_match_all('/<img.*?src=[\'|"]?(\S*?)[\'|"|\s]/is',$html,$m); return $m[1]; }