<HTML>
<HEAD>
    <TITLE>达士隆基金</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
    <LINK HREF="./Stuff/u2.css" REL="stylesheet" TYPE="text/css" />
</HEAD>
<BODY id="funds">
<script type="text/javascript" src="http://union.u2ipo.com/inc/postbox.js"></script>
<!--顶部文件开始-->
<DIV ID="header">
<DIV ID="signtop">

<A HREF="http://www.u2ipo.com/UCP/Login">登录</A>
/
<A HREF="http://www.u2ipo.com/UCP/Reg">注册</A>
 /
 <span onClick="mask.style.visibility='visible';massage_box.style.visibility='visible'" style="cursor:hand"><a href="#" style="color:#f00;">严正声明</a></span>
</DIV>
<DIV ID="menu">
<A HREF="http://www.u2ipo.com/Club/" id="cluba" title="投资人和创业者的家园">创投社区</A>
<A HREF="http://www.u2ipo.com/Digg/" id="digga" title="投资热点追踪和创业经验分享">创投精读</A>
<A HREF="http://www.u2ipo.com/Fund/" id="fundsa" title="风险、天使、投行等投资机构">投资机构</A>
<A HREF="http://www.u2ipo.com/Project/" id="projecta" title="项目商业计划书">项 目</A>
<A HREF="http://www.u2ipo.com/Moved/" id="moveda" title="仅仅是以创业投资为主题的活动">活 动</A>
<A HREF="http://www.u2ipo.com/" id="indexa" title="点击这里回到蓝海首页">首 页</A>
</DIV>
</DIV>
<!--顶部文件结束-->
<div id="massage_box">
<div class="massage">
<div class="header" onmousedown=MDown(massage_box)>
<div style="display:inline; position:absolute;color:#fff;padding:3px 10px;font-weight:bold;">&gt;</div>
<span onClick="massage_box.style.visibility='hidden'; mask.style.visibility='hidden'" style="float:right;padding-right:10px;display:inline; cursor:hand" title="关闭弹出窗口">[×]</span>
</div>
<ul style="margin:5px;padding:5px;">
<li>&nbsp; &nbsp; &nbsp; &nbsp; 我们近期发现有部分机构打着“蓝海创投”或者合作伙伴的旗号,通过网站留言、MSN、QQ等方式骗取项目方信任、套取项目联系方式及其核心资料。</li>
<li>&nbsp; &nbsp; &nbsp; &nbsp; 为了保证创业者正当权益不受侵害,蓝海创投发出严正声明,我们没有授权任何机构以上述形式获取项目方资料,对某些机构恶意套取本公司网站项目核心资料的行为,我们将保留证据并遵循法律途径进行追诉的权利。项目方在联系投资方以及中介机构过程中也要提高警惕。</li>
<li>&nbsp; &nbsp; &nbsp; &nbsp; 举报热线:021-51343539</li>
</ul>
</div>
</div>
<div id="mask"></div><DIV ID="nav"><P> &gt; <A HREF="http://www.u2ipo.com/Fund/">投资机构</A> &gt; 达士隆基金</P> </DIV>
<DIV ID="main">
<TABLE ID="main-table">
<TD ID="main-table-middle"> 
<span  style="float:right"><input type="checkbox" id="ck1" onclick="displayTable()" title="打开/关闭投资机构分类列表"/>打开/关闭投资机构分类列表</span>
<div ID="fund_sort" style="display:none;margin:0;padding:0">
  <!--投资机构页面左部文件开始-->
<h4 style="color:#999;">&gt;&gt; 投资机构分类</h4>
<div id="sortlists">
<a HREF="http://www.u2ipo.com/Fund/" >所有机构分类</a>
<A href="http://www.u2ipo.com/Fund/Index/sortid/1"  >天使投资(96)</a>
<A href="http://www.u2ipo.com/Fund/Index/sortid/2"  style="background:#0099CC;color:#fff;border:1px #09c solid;">风险投资(317)</a>
<A href="http://www.u2ipo.com/Fund/Index/sortid/3"  >产业投资(84)</a>
<A href="http://www.u2ipo.com/Fund/Index/sortid/4"  >服务机构(36)</a>
<A href="http://www.u2ipo.com/Fund/Index/sortid/5"  >其他投资(40)</a>
</div>
<!--投资机构页面左部文结束--> </div>
<DIV id="memoTitle">
  达士隆基金
  <span id="status">
          
  </span>
 
</DIV>
<DIV ID="acts">
   <span class="author-time"> <A HREF="http://www.u2ipo.com/Default/U/id/9394">绝对逍遥</A>&nbsp;/&nbsp; 2008-01-09 12:37:49 </span> 
  <span id="actsbottom">
  用户操作:
 <A HREF="http://www.u2ipo.com/Fund/Fav/id/755" title="把 “达士隆基金” 放入我的收藏夹">收藏</A>
  <a href="http://www.u2ipo.com/UCP/msgSend/id/9394" title="给我发站内信息">给我发消息</a> 
     </span>
</DIV> <DIV id="changeMemoNav">
<P class="changeMemoTitle">机构介绍</P>
<P class="changeMemoChange0">机构资料</P>
  <P class="changeMemoChange0">投资案例</P>
  <P class="changeMemoChange0" title="目前有624个项目与该机构相匹配" style="width:90px">匹配项目[624]</P>
</DIV> <DIV id="changeMemo_cnt" >
<SPAN title="Don't delete me"></SPAN>
<SPAN>
<TABLE class="uptable" cellspacing="1" border="0">
<TR>
<TD class="uptable-title">资金分类</TD>
<TD> 
风险投资
</TD>
  </TR> <TR>
<TD class="uptable-title">投资领域</TD>
<TD>   
<A HREF="http://www.u2ipo.com/Project/Index/sortid/1" title="互联网领域的项目">互联网1</A>
<A HREF="http://www.u2ipo.com/Project/Index/sortid/2" title="互联网领域的项目">互联网2</A>
<A HREF="http://www.u2ipo.com/Project/Index/sortid/3" title="互联网领域的项目">互联网3</A>
<A HREF="http://www.u2ipo.com/Project/Index/sortid/4" title="互联网领域的项目">互联网4</A>
</TD>
  </TR>
<TR>
<TD class="uptable-title">投资阶段</TD>
<TD>
  早期项目               发展期               扩张期               成熟期
</TD>
  </TR>
<TR>
<TD class="uptable-title">投资额度</TD>
<TD>
5000万美元 </TD>

</TR>
<TR>
<TD class="uptable-title">机构介绍</TD>
<TD>海外华人成立的一个民间基金 
</TD>

</TR>
  </TABLE>
 
        </SPAN>
<SPAN>
<TABLE class="uptable" cellspacing="1" border="0">
<TR>
<TD class="uptable-title">投资案例</TD>
<TD> 
中关之鹰数码立体影像,数码彩扩机
    
</TD>
</TR>
</table>

        </SPAN>
<SPAN>
<p class="notice">匹配项目情况浏览权限:投资机构登记人!</p>
</SPAN>
</DIV>
&nbsp;&nbsp;
<TABLE width="540"><TR><TD></TD></TR></TABLE>
</TD>
<TD ID="main-table-right">
<!--投资机构右部文件开始-->  
<div class="lists-box-theme">&gt;&gt; TOP10 关注排行......</div>
<div class="lists-box">
<ul>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/17">红杉资本中国基金</A>[5960]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/19">个人投资</A>[4525]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/61">北极光创投</A>[3509]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/18">凯雷投资集团</A>[3001]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/7">IDG技术创业投资基金</A>[2863]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/41">戈壁合伙人</A>[2792]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/55">上海同辉创业投资有限公司</A>[2698]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/15">高盛亚洲</A>[2495]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/215">个人投资</A>[1376]</li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/214">天使投资者</A>[1346]</li>
</ul>
</div>
 
<div class="lists-box-theme">&gt;&gt; NEW10 最新登记......</div>
<div class="lists-box">
<ul>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/770">Oncard International Limited</A></li>
<li>·<A HREF="http://www.u2ipo.com/Fund/Show/id/769">赵新星</A></li>
</ul>
</div> 
<!--投资机构右部文件结束--> </TD>
</TR>
</TABLE>
</DIV> ---------------------------------------
<A HREF="http://www.u2ipo.com/Project/Index/sortid/1" title="互联网领域的项目">互联网1</A>
<A HREF="http://www.u2ipo.com/Project/Index/sortid/2" title="互联网领域的项目">互联网2</A>
<A HREF="http://www.u2ipo.com/Project/Index/sortid/3" title="互联网领域的项目">互联网3</A>
<A HREF="http://www.u2ipo.com/Project/Index/sortid/4" title="互联网领域的项目">互联网4</A>
希望帮忙写 红颜色的正则表达式。匹配一条记录直接获取就行 如果匹配 互联网1 互联网2 互联网3 ……   下面这么写可以吗?
  if (M_area.Success)
            {
                for (int i = 0; i < M_area.Groups.Count; i++)
                {
                    str_area += Regex.Replace(M_area.Groups[i].Value.ToString(), @"<a.+?>(?<sub>.*?)</a>", "${sub}", RegexOptions.IgnoreCase | RegexOptions.Multiline);
                }
            }

解决方案 »

  1.   

    <A.*?HREF.*?title="互联网领域的项目">(?<sub>.?)</A>试试看
      

  2.   

    手写,无测试我这里没装vs....
    WebClient wc=new WebClient();
    string html=wc.DownloadString(@"http://www.u2ipo.com/Fund/Show/id/17");
    string pattern=@"(?:
    <td\s*class=""uptable-title"">资金分类</td>
    [^<>]*
    <td>\s*(?<资金分类>[^<>]*)\s*</td>
    )? [\s\S]*?
    (?:
    <td\s*class=""uptable-title"">投资领域</td>
    [^<>]*
    <td>\s*
    (?:<a[^><]+>(?<投资领域>[^\s<>]*)</a>\s*)+
    \s*</td>
    )? [\s\S]*?
    (?:
    <td\s*class=""uptable-title"">投资额度</td>
    [^<>]*
    <td>\s*(?<投资额度>[^<>]*)\s*</td>
    )? [\s\S]*?
    (?:
    <td\s*class=""uptable-title"">机构介绍</td>
    [^<>]*
    <td>\s*(?<机构介绍>[^<>]*)\s*</td>
    )? [\s\S]*?
    (?:
    <td\s*class=""uptable-title"">投资案例</td>
    [^<>]*
    <td>\s*(?<投资案例>[^<>]*)\s*</td>
    )?
    ";
    Regex reg=new Regex(pattern,RegexOptions.IgnoreCase|RegexOptions.IgnorePatternWhitespace);
    Match m=reg.Match(html);
    if(m.Success){
    Console.Write("不成功!");
    return;
    }
    if(m.Groups["资金分类"].Success){
    Console.WriteLine("资金分类:"+m.Groups["资金分类"].Value);
    }
    if(m.Groups["投资领域"].Success){
    Console.WriteLine("资金领域:");
    foreach(Capture c in m.Groups["投资领域"].Captures){
    Console.WriteLine("    "+c.Value);
    }
    }
    if(m.Groups["投资额度"].Success){
    Console.WriteLine("投资额度:"+m.Groups["投资额度"].Value);
    }
    if(m.Groups["机构介绍"].Success){
    Console.WriteLine("机构介绍:"+m.Groups["机构介绍"].Value);
    }
    if(m.Groups["投资案例"].Success){
    Console.WriteLine("投资案例:");
    string str=m.Groups["投资案例"].Value;
    if(str.IndexOf(@"<br />")!=-1){
    string[] arr=str.Split(@"<br />");
    foreach(string s in arr){
    Console.WriteLine("    "+s);
    }
    }else{
    Console.WriteLine("投资案例:"+m.Groups["投资案例"].Value);
    }
    }
      

  3.   

    if(m.Success){
        Console.Write("不成功!");
        return;
    }
    -------------------
    if(!m.Success){
        Console.Write("不成功!");
        return;
    }-.-这里写错。。少了!