62,025
社区成员
发帖
与我相关
我的任务
分享
void Main()
{
string html=@"<div class=""blkContainerSblk"">
<h1 id=""artibodyTitle"" pid=""1"" tid=""1""
did=""21836924"" fid=""1666"">人社部官员:事业单位人员不必因担心改革早退休</h1>
<div class=""artInfo""><span id=""art_source""><a
href=""http://www.sina.com.cn"">http://www.sina.com.cn</a></span> <s
pan id=""pub_date"">2011年01月19日03:15</span> <span
id=""media_name""><a href=""http://epaper.jinghua.cn/html/2011-
01/19/content_624637.htm"" target=""_blank"">京华时报</a> <a
href=""http://epaper.jinghua.cn/html/2011-01/19/content_624637.htm""
target=""_blank""></a> </span>
</div>
<!-- 正文内容 begin -->
<!-- google_ad_section_start -->
<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>
<!-- publish_helper_end -->
</div>
</div>";
foreach(Match m in Regex.Matches(html,@"(?is)<h1\s*id=""artibodyTitle""[^>]*>(?<title>[^<]+).*?id=""pub_date"">(?<time>[^<]+)<.*?id=""media_name"">.*?>(?<from>[^<]+).*?name='原始正文'.*?>(?<news>.*?)<!-- publish_helper_end -->"))
{
Console.WriteLine("标题: "+m.Groups["title"].Value);
Console.WriteLine("时间: "+m.Groups["time"].Value);
Console.WriteLine("来源: "+m.Groups["from"].Value);
Console.WriteLine("内容: "+m.Groups["news"].Value);
}
}
/*
标题: 人社部官员:事业单位人员不必因担心改革早退休
时间: 2011年01月19日03:15
来源: 京华时报
内容:
<p> 昨天,人社部中国人事科学研究院院长吴江接受本报记者专访时表示,此前启动
的5个事业单位改革全国试点,目前仍在试点阶段,并未停滞。</p>
<p> 他也表示,事业单位改革在制度设计上会有合理安排,不论是北京还是其他地方
,事业单位工作人员没必要因此提前退休。</p>
*/