
{"id":236,"date":"2008-01-22T00:12:00","date_gmt":"2008-01-22T00:12:00","guid":{"rendered":"http:\/\/www.sincebirth.cn\/?p=236"},"modified":"2008-01-22T00:12:00","modified_gmt":"2008-01-22T00:12:00","slug":"%e7%99%be%e5%ba%a6%e7%a9%ba%e9%97%b4%e9%93%be%e6%8e%a5%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/niuduer.sincebirth.space\/?p=236","title":{"rendered":"\u767e\u5ea6\u7a7a\u95f4\u94fe\u63a5\u5206\u6790"},"content":{"rendered":"<div id=\"blog_text\" class=\"cnt\">\n<p>string input = &quot;&quot;;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (!string.IsNullOrEmpty(TextBox1.Text))<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  input = TextBox1.Text.Trim();&nbsp;&nbsp;  <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  string html = HtmlHandle.GetHtml(input, 8000, 0, Encoding.GetEncoding(&quot;gb2312&quot;));<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  string ptn = @&quot;&lt;span id=&quot;&quot;linkArea&quot;&quot;&gt;.*?&quot;&quot;(?&lt;link&gt;.*?)&quot;&quot;,&quot;&quot;(?&lt;title&gt;.*?)&quot;&quot;,&quot;&quot;(?&lt;subtitle&gt;.*?)&quot;&quot;.*?&lt;\/span&gt;&quot;;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  string res = &quot;&quot;;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  MatchCollection mc = Regex.Matches(html, ptn, RegexOptions.ExplicitCapture);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  foreach (Match ma in mc)<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  res = res + &quot;&lt;a href=&quot; + ma.Groups[&quot;link&quot;].Value + &quot; title= &quot; + ma.Groups[&quot;subtitle&quot;].Value+&quot;&gt;&quot; + ma.Groups[&quot;title&quot;].Value + &quot;&lt;\/a&gt;&lt;br\/&gt;&quot; ;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Literal1.Text = res;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>string input = &quot;&quot;; &nbsp;&nbsp;&nbsp;&nbsp;&#038;n [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-236","post","type-post","status-publish","format-standard","hentry","category-all"],"views":1064,"_links":{"self":[{"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=\/wp\/v2\/posts\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=236"}],"version-history":[{"count":0,"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=\/wp\/v2\/posts\/236\/revisions"}],"wp:attachment":[{"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/niuduer.sincebirth.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}