php 如何用正则表达式修改图片地址
s:5:"title";s:5:"12321";s:3:"pic";s:21:"20140709072316913.png";s:4:"text";s:156:"<img...
s:5:"title";s:5:"12321";s:3:"pic";s:21:"20140709072316913.png";s:4:"text";s:156:"<img src="/js/attached/20140709/20140709075744_80111.png" alt="" />
获取了代码
我的需求是用正则表达式把
<img src="/js/attached/20140709/20140709075744_80111.png" alt="" />
变为
<img src="shop.shop.com/js/attached/20140709/20140709075744_80111.png" alt="" />
请教各位大神! 展开
获取了代码
我的需求是用正则表达式把
<img src="/js/attached/20140709/20140709075744_80111.png" alt="" />
变为
<img src="shop.shop.com/js/attached/20140709/20140709075744_80111.png" alt="" />
请教各位大神! 展开
1个回答
2014-07-09
展开全部
已经写好!
请测试!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询