$string= ' <H2> 为了加快村镇银行组建步伐,使吴忠村镇银行尽快走向正规化运营轨道,经研究决定,面向社会公开招聘管理人员和员工,具体事项如下
<IMG style=\ "WIDTH: 500px; HEIGHT: 375px\ " src=\ "http://127.0.0.1:/SinaEditor/uploadfile/200805041209872891.jpg\ ">
<IMG style=\ "WIDTH: 500px; HEIGHT: 415px\ " src=\ "http://127.0.0.1:/SinaEditor/uploadfile/200805041209872906.gif\ "> 这个是一个测试! </H2> <BR> 我的博客: <A href=\ "http://www.zendstudio.net/\ "> http://www.zendstudio.net/ </A> ';
preg_match_all('/<img.+?>/i',$string,$new);
print_r($new);
<IMG style=\ "WIDTH: 500px; HEIGHT: 375px\ " src=\ "http://127.0.0.1:/SinaEditor/uploadfile/200805041209872891.jpg\ ">
<IMG style=\ "WIDTH: 500px; HEIGHT: 415px\ " src=\ "http://127.0.0.1:/SinaEditor/uploadfile/200805041209872906.gif\ "> 这个是一个测试! </H2> <BR> 我的博客: <A href=\ "http://www.zendstudio.net/\ "> http://www.zendstudio.net/ </A> ';
preg_match_all('/<img.+?>/i',$string,$new);
print_r($new);
<IMG style=\ "WIDTH: 500px; HEIGHT: 375px\ " src=\ "http://127.0.0.1:/SinaEditor/uploadfile/200805041209872891.jpg\ ">
<IMG style=\ "WIDTH: 500px; HEIGHT: 415px\ " src=\ "http://127.0.0.1:/SinaEditor/uploadfile/200805041209872906.gif\ "> 这个是一个测试! </H2> <BR> 我的博客: <A href=\ "http://www.zendstudio.net/\ "> http://www.zendstudio.net/ </A> ';
preg_match_all('/<img.+?>/i',$string,$new);
print_r($new);
怎么都是 127.0.0.1