如何通过正则表达式提取出内容中的img标签
如何通过正则表达式提取出img标签夹杂的文字夹杂的文字13414 <img alt="" border="0" src="http://www.isy.cn/image/2081955/1_billy0217_B1.jpg" /> <img alt="" border="0" src="http://www.isy.cn/image/208191/1_billy0217_B2.jpg" />夹杂的文字134 <img alt="" border="0" src="http://www.isy.cn/image/208192/1_billy0217_B3.jpg" />夹杂的文字14134 <img alt="" border="0" src="http://www.isy.cn/image/2081933/1_billy0217_B4.jpg" /> 夹杂的文字夹杂的文字13414314
想要的结果:
<img alt="" border="0" src="http://www.isy.cn/image/2081955/1_billy0217_B1.jpg" />
<img alt="" border="0" src="http://www.isy.cn/image/208191/1_billy0217_B2.jpg" />
<img alt="" border="0" src="http://www.isy.cn/image/208192/1_billy0217_B3.jpg" />
<img alt="" border="0" src="http://www.isy.cn/image/2081933/1_billy0217_B4.jpg" />
我现在用的 开头(?<content><img.*/>?)结尾。。提取不出来啊..但是这个正则在别的地方使用,倒是能提取出img标签
请高手指点 (?<content><img.*?/>) 一样的 没有返回结果
页:
[1]