1
$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);
}
IMG에서 SRC를 가져올 수 없습니까?HTML 이미지 태그에서 src = ""를 가져 오는 방법
참조 : http://stackoverflow.com/questions/1058852/regex-to-get-src-value-from-an-img-tag – Andy