preg_match("/<图片(.*?)>/",$str, $result); 
试试看看行不行