//样例1
<font>
<div style="display: inline;">
<strong style="font-weight: normal;">
我是
<strong style="font-weight: normal;display:none;">御叶</strong>
</strong>
</div>
</font>
</font>
<font>
<u style="text-decoration:none;">
<span>
<nav style="display: inline;">
需要( )<b style="display:none;">
斡桐册僧偏麻
</b>
</nav>
</span>
</u>
</font>
<font>
<i style="font-style: normal;">
<font>
。【需要的:<u style="display:none;text-decoration:none;">
莞息廓疲顺
</u>
</font>
</i>
</font>
<u style="text-decoration:none;">
<div style="display: inline;">
信息】<u style="display:none;text-decoration:none;">存</u>
</div>
</u>
//样例2
<span>
<u style="text-decoration:none;">
<b style="font-weight: normal;">需<u style="display:none;text-decoration:none;">毫衙</u></b>
</u>
</span><div style="display: inline;"><b style="font-weight: normal;">要<nav style="display:none;">里罩碎</nav></b></div>
<nav style="display: inline;">
<strong style="font-weight: normal;">
<div style="display: inline;">
<strong style="font-weight: normal;">
<div style="display: inline;">的<i style="font-style: normal; display: none;">鹤狄钧柏1</i></div>
</strong>
</div>
</strong>
</nav>
//样例3
<font>
<font>
<div style="display: inline;">
<strong style="font-weight: normal;">
需要的
<strong style="font-weight: normal;display:none;">御叶</strong>
</strong>
</div>
</font>
</font>
<font>
<u style="text-decoration:none;">
<span>
<nav style="display: inline;">
信息( )
<b style="display:none;">斡桐册僧偏麻</b>
</nav>
</span>
</u>
</font><font>
<i style="font-style: normal;">
<font>。【需要:<u style="display:none;text-decoration:none;">莞息廓疲顺</u></font>
</i>
</font><u style="text-decoration:none;"><div style="display: inline;">需要】<u style="display:none;text-decoration:none;">存</u></div></u>
//样例4
<i style="font-style: normal;">
<nav style="display: inline;">
“需要<div style="display: none;">
僵鞍穗艰钙
</div>
</nav>
</i><div style="display: inline;">
<nav style="display: inline;">
<strong style="font-weight: normal;">
<i style="font-style: normal;">
<nav style="display: inline;">需要<i style="font-style: normal; display: none;">霸</i></nav>
</i>
</strong>
</nav>
</div><b style="font-weight: normal;">
<div style="display: inline;">
<strong style="font-weight: normal;">
<u style="text-decoration:none;">
<strong style="font-weight: normal;">
需要,
<span style="display:none;">魂拳调徐庙铎斥</span>
</strong>
</u>
</strong>
</div>
</b>
<b style="font-weight: normal;">
<font>
<b style="font-weight: normal;">
需要( )。
<i style="font-style: normal; display: none;">报州胰斤</i>
</b>
</font>
</b><i style="font-style: normal;">
<div style="display: inline;">
<strong style="font-weight: normal;">
<div style="display: inline;">
【需要】
<font style="display:none;">秘幼羿虑舆苇友</font>
</div>
</strong>
</div>
</i>
这里有四段html ,需求是提取出里面我标明的需要的字符串,这是被加了干扰的,主要是用了css 里的“display:none”
直接打开在网页可以看到正常的内容,代码里加了干扰
现在思路是用正则匹配出来“display:none”的html标签
奈何正则太渣 求高手帮助 或有其他思路请指导 感激
语言 C#