请大神正则表达式替掉图片里的宽和高
数据库里有个字段需要批量替换,希望把img里的样式去掉<imgalt=\"\"src=\"/uploads/allimg/140425/1-14042516100X53....
数据库里有个字段需要批量替换,希望把img里的样式去掉
<img alt=\"\" src=\"/uploads/allimg/140425/1-14042516100X53.jpg\" style=\"width: 600px; height: 400px\" />
替换后
<img alt=\"\" src=\"/uploads/allimg/140425/1-14042516100X53.jpg\" />
正则有点头大,请高手指教下,谢谢! 展开
<img alt=\"\" src=\"/uploads/allimg/140425/1-14042516100X53.jpg\" style=\"width: 600px; height: 400px\" />
替换后
<img alt=\"\" src=\"/uploads/allimg/140425/1-14042516100X53.jpg\" />
正则有点头大,请高手指教下,谢谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询