PHP正则匹配img并处理src
$parm = '/src=\"\/images\/upload\//';
$replacy = 'src="https://xxxx.com/images/upload/';
$re = preg_replace($parm, $replacy, $content);
$parm = '/src=\"\/images\/upload\//';
$replacy = 'src="https://xxxx.com/images/upload/';
$re = preg_replace($parm, $replacy, $content);