网页中有如下代码
<table>
<tr>
<td>
<IMG src="http://localhost/NumberJs/images/128059860327656250.jpg" ><P>123</P>
<IMG src="http://localhost/NumberJs/images/128059860425156250.jpg" ><br>
<IMG src="http://localhost/NumberJs/images/128059860425156251.jpg" >
<a href='#'>其他</a>
</td>
</tr>
</table>
我怎么提取出图片的路径,也就是
http://localhost/NumberJs/images/128059860327656250.jpg
http://localhost/NumberJs/images/128059860425156250.jpg
http://localhost/NumberJs/images/128059860425156251.jpg
这样的格式.具体的代码
先谢谢了,急用!
<table>
<tr>
<td>
<IMG src="http://localhost/NumberJs/images/128059860327656250.jpg" ><P>123</P>
<IMG src="http://localhost/NumberJs/images/128059860425156250.jpg" ><br>
<IMG src="http://localhost/NumberJs/images/128059860425156251.jpg" >
<a href='#'>其他</a>
</td>
</tr>
</table>
我怎么提取出图片的路径,也就是
http://localhost/NumberJs/images/128059860327656250.jpg
http://localhost/NumberJs/images/128059860425156250.jpg
http://localhost/NumberJs/images/128059860425156251.jpg
这样的格式.具体的代码
先谢谢了,急用!
解决方案 »
- Assembly.CerateInstance为空问题
- 上传文件的按钮怎么写
- 如何创建.net控件?如何入手?应该创建什么类型项目(100分)
- medai player 嵌入网页,请教一下,播放列表怎么写??急!!!!!!!!
- cookies问题
- 请问ASP.NET中的Menu控件怎么引用进工具箱?
- asp.net母版页引用css和外部JS文件问题
- 我想用asp.net完成一个二手货交易市场
- UrlRewriter的一个问题
- 急救!!我写的程序当view in browser时,老是提示A page can have only one server-side Form tag
- 下载的OA系统出现这样的配制错误
- 高手救命!! 急!!!在图边表区放了100分这里只剩20分了 各位可以去图表区回复
str=re.Replace(str,"$2")
这个是vb语法
但是<IMG height=200 src="/NumberJs/images/128059860327656250.jpg" width=300 border=0><IMG height=200 src="/NumberJs/images/128059860425156250.jpg" width=300 border=0>
我不想要height,width这样的属性,只要"/NumberJs/images/128059860327656250.jpg"
已经发过一次拉。
str=re.Replace(str,"$2")
<IMG src="http://localhost/NumberJs/images/128059860327656250.jpga"><P>123</P>
<IMG src='http://localhost/NumberJs/images/128059860425156250.jpg'><br/>
正则表达式:(?<=IMG src=(["'])).*?(?=\1\s*>)
C#:(?<=IMG src=([\"'])).*?(?=\\1\\s*>)
正则模式:Singleline
匹配数:2
匹配结果:
*******************
http://localhost/NumberJs/images/128059860327656250.jpga
*******************
http://localhost/NumberJs/images/128059860425156250.jpg