$match = array();
$pregRule = "/<img[^>]*src\s*=\s*[\"|\']?\s*([^>\"\'\s]*)(\">|\"\/>)/i";
preg_match_all($pregRule,$content,$match);
记录一下
$match = array();
$pregRule = "/<img[^>]*src\s*=\s*[\"|\']?\s*([^>\"\'\s]*)(\">|\"\/>)/i";
preg_match_all($pregRule,$content,$match);
记录一下
转载于:https://www.cnblogs.com/xiaofan1949/p/10678970.html