帮写个正则
<FONT size=+0><IMG
height=110 alt=Google src=\"http://localhost/SISYSTEM/Web/CaiBian/PicShowA.aspx?id=102\"width=286></FONT> 把http://localhost/SISYSTEM/Web/CaiBian/PicShowA.aspx?id=102取出来
正则说明 必须在IMG内,谢谢!
解决方案 »
- tabcontrol 如何在点击TAB标签时触发哪个事件
- 导出到Excel,导出的内容全在一个单元格里
- TextBox实现输入匹配下拉
- 数据结构和算法的问题
- 都不知道怎么问了,反正问题很普遍,希望帮顶!顶者有分!
- String.Format
- 判断数据库字段是否为空? 还有判断数据库字段是否是true和false
- 关于.txt格式转化成int的问题
- 面试华为软件研发已被录用,忧喜兼半,听说华为根本不用.net,本人一直用.net,很是有点郁闷ing!!大伙给点建议吧!!
- 这是添加的c#什么类型对话框呀
- 图片问题,在什么事件里重画,具体怎么 画,望高手指教!!!!!
- 在c#中要设计一个网络监控程序,谁有好的思路?
谢谢!
<tr>
<td></td>
<td><img src="../img/dot.gif" width="12" height="11"> <a href="2002120601.htm">文</a></td>
<td>主席令第75号</td>
<td>2002/08/29</td>
<td>有效</td>
</tr>
现在只能通过找在<tr></tr>中,含有<img src="../img/dot.gif" width="12" height="11">
我就认为匹配。加我QQ:75931291聊关于正则表达式的产问题。
RegexOptions.IgnoreCase | RegexOptions.Compiled);
特定字符或转义序列 含义 样例 匹配的样例
^ 输入文本的开头 ^B B,但只能是文本中的第一个字符
$ 输入文本的结尾 X$ X,但只能是文本中的最后一个字符
. 除了换行字符(\n)以外的所有单个字符 i.ation isation、ization
* 可以重复0次或多次的前导字符 ra*t rat、raat等
+ 可以重复1次或多次的前导字符 ra+t rt、rat、raat等
? 可以重复0次或1次的前导字符 ra?t 只有rt和rat匹配
\s 任何空白字符 \sa [space]a,\ta,\na(\t和\n与C#的\t和\n含义相同)
\S 任何不是空白的字符 \SF aF,rF,cF,但不能是\tf
\b 字边界 ion\b 以ion结尾的任何字
\B 不是字边界的位置 \BX\B 字中间的任何X
comment:<img: Match the characters "<img" literally[\s\S]*? :Match a single character out of the list: whitespace character, or a non-whitespace character*? :Between zero and unlimited times, as few times as possible, expanding as needed (lazy)src=" :Match the characters "src="" literally(?<src>[^"]*?) :Match the regular expression below and capture its match into backreference with name "src"[^"]*? :Match a single character not present in the list: one of the characters """*? :Between zero and unlimited times, as few times as possible, expanding as needed (lazy)" :Match the character """ literally[\s\S]*? :Match a single character out of the list: whitespace character, or a non-whitespace character*? :Between zero and unlimited times, as few times as possible, expanding as needed (lazy)> :Match the character ">" literally