$str = "html code here and img tag";
preg_match_all('~<img ([^>]+)>~i', $str, $matches);
$images = array();
foreach ($matches[1] as $str) {
preg_match_all('~([a-z]([a-z0-9]*)?)=("|\')(.*?)("|\')~is', $str, $pairs);
}
Я не могу получить SRC от IMG, как идеи?Как получить src = "" из html метки изображения
См: http://stackoverflow.com/questions/1058852/regex-to-get-src-value-from-an-img-tag – Andy