帮写个正则
<FONT size=+0><IMG 
height=110 alt=Google src=\"http://localhost/SISYSTEM/Web/CaiBian/PicShowA.aspx?id=102\"width=286></FONT>&nbsp;把http://localhost/SISYSTEM/Web/CaiBian/PicShowA.aspx?id=102取出来
正则说明 必须在IMG内,谢谢!

解决方案 »

  1.   

    IMG内不要再嵌套别的元素,否则会乱的!
    谢谢!
      

  2.   

    我现在想取得一个匹配,取得一个html文件中的
    <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聊关于正则表达式的产问题。
      

  3.   

    <img[\s\S]*?src="(?<src>[^"]*?)"[\s\S]*?>Regex regex = new Regex(@"<img[\s\S]*?src=""(?<src>[^""]*?)""[\s\S]*?>",
        RegexOptions.IgnoreCase | RegexOptions.Compiled);
      

  4.   

    TO:fancyf(凡瑞) ( )授之以鱼,不如授之以渔!请说明一下!
      

  5.   

    http://www.csharp.net.cn/show.aspx?id=52&cid=23
      

  6.   


    特定字符或转义序列 含义 样例  匹配的样例 
    ^  输入文本的开头 ^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 
      

  7.   

    <img[\s\S]*?src="(?<src>[^"]*?)"[\s\S]*?>
    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
      

  8.   

    http://msdn.microsoft.com/library/CHS/cpgenref/html/cpconRegularExpressionsLanguageElements.asp