开发者

Regex Problem(C#)

开发者 https://www.devze.com 2022-12-30 13:01 出处:网络
HTML: <TD style=\"DISPLAY: none\">999999999</TD> <TD class=CLS1 >Name</TD> <TD class=BLACA>271229</TD>

HTML:

<TD style="DISPLAY: none">999999999</TD>
<TD class=CLS1 >Name</TD>
<TD class=BLACA>271229</TD>
<TD开发者_运维技巧>220</TD>
<TD>343,23</TD>
<TD>23,0</TD>
<TD>222,00</TD>
<TD>33222,8</TD>
<TD class=blacl>0</TD>
<TD class=black>0</TD>
<TD>3433</TD>
<TD>40</TD>

I need td in value. How to do it in C#? I want a string array;

999999999
Name
271229
220


Do not use regular expressions to parse html - see this for why.

Use the HTML Agility Pack to parse the HTML and extract the data in it.

0

精彩评论

暂无评论...
验证码 换一张
取 消