正则批量替换
$str =''
如何批量将src前面加个域名呢
$str =''
<br />$str = '<img src="test/aaa/a.jpg" widht=33 height=3 alt="正则批量轮换" ><img src="f/aaa/a.jpg" widht=4 height=3 alt="正则批量轮换" >';<br />echo preg_replace('/(src=")/', "$1'http://www.xxx.com/", $str);<br />