日期:2014-05-17 浏览次数:20485 次
$s =<<< TXT<P align=center><img src="/uploads/allimg/c100508/12I33243OF-12228.jpg" border=0>
<P align=center><img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I33243OF-12228.jpg" border=0>
<img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I33243Y40-29608.jpg" border=0>
<img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I33243c60-33252.jpg" border=0>
<img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I332440Y0-410N.jpg" border=0>
<img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I332441P-53227.jpg" border=0><BR><BR>
<img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I332442M0-62002.jpg" border=0>
<img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I332443L0-N248.jpg" border=0>
<img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I332444I0-X239.jpg" border=0>
<img alt=如果QQ我是你 src="/uploads/allimg/c100508/12I332445F-953E.jpg" border=0>
<img src="/uploads/allimg/c100508/12I33244C30-105E1.jpg" border=0 alt=如果QQ我是你></P>
TXT;
echo preg_replace('/alt=([\'"]?).+?\1(\s
------解决方案--------------------
>)/is', '$2', $s);