21,886
社区成员
发帖
与我相关
我的任务
分享
<img border="0" alt="Problem illustration" src="/image/get.aspx/1788bdde-9ea2-4800-b5ff-757e58a5bcf6">
<img border="0" alt="Problem illustration" src="http://www.aa.com/image/get.aspx/1788bdde-9ea2-4800-b5ff-757e58a5bcf6">
$str = '<img border="0" alt="Problem illustration" src="/image/get.aspx/1788bdde-9ea2-4800-b5ff-757e58a5bcf6">';
echo preg_replace('/(<img\s*[^>]*src=)"([^"]*)"(.*)/i','$1"http://www.aa.com$2"$3',$str);