$string = '[img]http://www.baidu.com/img/bdlogo.gif[/img]百度百度[img]http://127.0.0.1/jx09/p_w_upload/Mon_1308/196_403966_392c1785279171a.png[/img]
sssss
';$str = '[img]http://www.baidu.com/img/bdlogo.gif[/img]百度百度[img]http://127.0.0.1/jx09/p_w_upload/Mon_1308/196_403966_392c1785279171a.png[/img]sssss
';
preg_match_all("|\[img\](.*)\[/img\]|isU",$str,$myarr);
print"";";
print_r($myarr[0]);
print"
$content = '[img]http://www.baidu.com/img/bdlogo.gif[/img]百度百度[img]http://127.0.0.1/jx09/p_w_upload/Mon_1308/196_403966_392c1785279171a.png[/img]
sssss
通过正则后我想得到这个结果[img]http://www.baidu.com/img/bdlogo.gif[/img]