$url = 'cccvsdvdsv';要替换成$url = 'cccvsdvdsv';把域名去掉 回复内容: $url = 'cccvsdvdsv';要替换成$url = 'cccvsdvdsv';把域名去掉 $url = 'cccvsdvdsv'; echo preg_replace('/src=\"(http:\/\/.*)\//U', 'src="/', $url);登录后复制