<small id='Xyg9l'></small><noframes id='Xyg9l'>

      • <bdo id='Xyg9l'></bdo><ul id='Xyg9l'></ul>
        <i id='Xyg9l'><tr id='Xyg9l'><dt id='Xyg9l'><q id='Xyg9l'><span id='Xyg9l'><b id='Xyg9l'><form id='Xyg9l'><ins id='Xyg9l'></ins><ul id='Xyg9l'></ul><sub id='Xyg9l'></sub></form><legend id='Xyg9l'></legend><bdo id='Xyg9l'><pre id='Xyg9l'><center id='Xyg9l'></center></pre></bdo></b><th id='Xyg9l'></th></span></q></dt></tr></i><div id='Xyg9l'><tfoot id='Xyg9l'></tfoot><dl id='Xyg9l'><fieldset id='Xyg9l'></fieldset></dl></div>

      1. <tfoot id='Xyg9l'></tfoot>
      2. <legend id='Xyg9l'><style id='Xyg9l'><dir id='Xyg9l'><q id='Xyg9l'></q></dir></style></legend>

        获取2个html标签之间的文本c#

        Get text between 2 html tags c#(获取2个html标签之间的文本c#)

      3. <small id='GISEK'></small><noframes id='GISEK'>

        <legend id='GISEK'><style id='GISEK'><dir id='GISEK'><q id='GISEK'></q></dir></style></legend>
          <tbody id='GISEK'></tbody>

                <bdo id='GISEK'></bdo><ul id='GISEK'></ul>
                • <tfoot id='GISEK'></tfoot>
                  <i id='GISEK'><tr id='GISEK'><dt id='GISEK'><q id='GISEK'><span id='GISEK'><b id='GISEK'><form id='GISEK'><ins id='GISEK'></ins><ul id='GISEK'></ul><sub id='GISEK'></sub></form><legend id='GISEK'></legend><bdo id='GISEK'><pre id='GISEK'><center id='GISEK'></center></pre></bdo></b><th id='GISEK'></th></span></q></dt></tr></i><div id='GISEK'><tfoot id='GISEK'></tfoot><dl id='GISEK'><fieldset id='GISEK'></fieldset></dl></div>
                  本文介绍了获取2个html标签之间的文本c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试获取提供的 html (span) 之间的数据(在本例中为 31)

                  这是原始代码(来自 chrome 中的检查元素)

                  <块引用>

                  <span id="point_total" class="tooltip" oldtitle="注意:如果数字是黑色的,你的分数实际上有点负数.别担心,这只是意味着你需要重新开始涂胶."aria- describeby="ui-tooltip-0">31</span>

                  我有一个包含页面源的富文本框,这里是相同的代码,但在富文本框的第 51 行:

                  <块引用>

                  <DIV id=point_display>你有<BR><SPAN id=point_total class=tooltip jQuery16207621750175125325="23" oldtitle="注意:如果数字是黑色的,你的点其实是一点点负数.别担心,这只是意味着您需要重新开始订阅.">17</SPAN><BR>积分 </DIV><IMG style="FLOAT: right" title="获得订阅者" border=0 alt="当人们订阅你时,你会失去一分" src="http://static.subxcess.com/images/page/decoration/remove-1-point.png"></DIV>

                  我该怎么做呢?我尝试了几种方法,但似乎都不适合我.

                  我正在尝试从此页面检索点值:http://www.subxcess.com/sub4sub.php该数字会根据您的订阅者而有所不同.

                  解决方案

                  你可以非常具体:

                  var regex = new Regex(@"<span id=""point_total"" class=""tooltip"" oldtitle="".*?"" aria- describeby=""ui-tooltip-0"">(.*?)</span>");var match = regex.Match(@"<span id=""point_total"" class=""tooltip"" oldtitle=""注意:如果数字是黑色的,你的分数实际上有点负数.不要担心,这只是意味着你需要重新开始字幕."" aria- describeby=""ui-tooltip-0"">31</span>");var 结果 = match.Groups[1].Value;

                  I am trying to get the data between the html (span) provided (in this case 31)

                  Here is the original code (from inspect elements in chrome)

                  <span id="point_total" class="tooltip" oldtitle="Note: If the number is black, your points are actually a little bit negative.  Don't worry, this just means you need to start subbing again." aria-describedby="ui-tooltip-0">31</span>
                  

                  I have a rich textbox which contains the source of the page, here is the same code but in line 51 of the rich textbox:

                  <DIV id=point_display>You have<BR><SPAN id=point_total class=tooltip jQuery16207621750175125325="23" oldtitle="Note: If the number is black, your points are actually a little bit negative.  Don't worry, this just means you need to start subbing again.">17</SPAN><BR>Points </DIV><IMG style="FLOAT: right" title="Gain subscribers" border=0 alt="When people subscribe to you, you lose a point" src="http://static.subxcess.com/images/page/decoration/remove-1-point.png"> </DIV>
                  

                  How would I go about doing this? I have tried several methods and none of them seem to work for me.

                  I am trying to retrieve the point value from this page: http://www.subxcess.com/sub4sub.php The number changes depending on who subs you.

                  解决方案

                  You could be incredibly specific about it:

                  var regex = new Regex(@"<span id=""point_total"" class=""tooltip"" oldtitle="".*?"" aria-describedby=""ui-tooltip-0"">(.*?)</span>");
                  
                  var match = regex.Match(@"<span id=""point_total"" class=""tooltip"" oldtitle=""Note: If the number is black, your points are actually a little bit negative.  Don't worry, this just means you need to start subbing again."" aria-describedby=""ui-tooltip-0"">31</span>");
                  
                  var result = match.Groups[1].Value;
                  

                  这篇关于获取2个html标签之间的文本c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  How delegates work (in the background)?(代表如何工作(在后台)?)
                  C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)

                  <i id='2e94t'><tr id='2e94t'><dt id='2e94t'><q id='2e94t'><span id='2e94t'><b id='2e94t'><form id='2e94t'><ins id='2e94t'></ins><ul id='2e94t'></ul><sub id='2e94t'></sub></form><legend id='2e94t'></legend><bdo id='2e94t'><pre id='2e94t'><center id='2e94t'></center></pre></bdo></b><th id='2e94t'></th></span></q></dt></tr></i><div id='2e94t'><tfoot id='2e94t'></tfoot><dl id='2e94t'><fieldset id='2e94t'></fieldset></dl></div>
                  • <small id='2e94t'></small><noframes id='2e94t'>

                    <tfoot id='2e94t'></tfoot>
                      <tbody id='2e94t'></tbody>
                    • <legend id='2e94t'><style id='2e94t'><dir id='2e94t'><q id='2e94t'></q></dir></style></legend>

                            <bdo id='2e94t'></bdo><ul id='2e94t'></ul>