tryRegex theRegex= new Regex(@"<a href=""(?<uri>[^""]+)"".*?\/>(?<title>.*?)<\/a><br>.*?<font.*?>(?<summary>.+?)((<span class=""f"">)|(font clor=""#008000"">))", RegexOptions.IgnoreCase | RegexOptions.Singleline);
  
>>如何判断以某个特定字符串结尾?
use "某个特定字符串$"

解决方案 »

  1.   

    我试过了,可是还是得不到匹配,你拿这个字符串试一下:
    string webContent=@"<p><a href=""http://asu.info.apple.com\"" \/>
    Downloads has moved</a><br><font size=""-1""><b>Apple</b>'s summary<br><font color=""#008000"">";
    还是感谢你,先给你结50分。
      

  2.   

    there was an error, "font clor" should be "font color", tryRegex theRegex= new Regex(@"<a href=""(?<uri>[^""]+)"".*?\/>(?<title>.*?)<\/a><br>.*?<font.*?>(?<summary>.+?)((<span class=""f"">)|(font color=""#008000"">))", RegexOptions.IgnoreCase | RegexOptions.Singleline);