求助:
正则表达式 怎么获取html内容的数组 我用这个方法:(?<content>.+) 不行。应该怎么写啊

解决方案 »

  1.   

    content 主要 匹配的是 html的内容比如:
    <html>
    <head>
    </head>
    .....
      

  2.   

      我希望 得到:
    <div class="blkContainerSblkCon" id="artibody"> <!-- publish_helper name='原始正文' p_id='1' t_id='1' d_id='21836924' f_id='3' -->
    <p>  昨天,人社部中国人事科学研究院院长吴江接受本报记者专访时表示,此前启动的5个事业单位改革全国试点,目前仍在试点阶段,并未停滞。</p><p>  他也表示,事业单位改革在制度设计上会有合理安排,不论是北京还是其他地方,事业单位工作人员没必要因此提前退休。</p><p> <strong> 改革试点并未停滞</strong></p></div>获取这些内容
      

  3.   


    正则:
     rere = "([\\s\\S]*)<div\\s+class=\"blkContainerSblkCon\"\\s+id=\"artibody\">(?<content>.+)([\\s\\S]*)</div>";
      Regex reg = new Regex(rere);
      

  4.   

    http://topic.csdn.net/u/20110120/14/4b43531c-939f-4004-b679-a34fb2838c06.html