$url = 'cccvsdvdsv';
should be replaced with
$url = 'cccvsdvdsv';
replace the domain name Remove
$url = 'cccvsdvdsv';
should be replaced with
$url = 'cccvsdvdsv';
replace the domain name Remove
<code class="php">$url = '<img src="http://img.baidu.com/upload/2312312.jpg">cccvsdvdsv<img src="http://www.sina.com/upload/434dfe2.jpg">'; echo preg_replace('/src=\"(http:\/\/.*)\//U', 'src="/', $url);</code>