Regex Can';找不到正确的正则表达式

Regex Can';找不到正确的正则表达式,regex,Regex,示例文本: 'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span> <span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span> <span style="font-family:'Times New Roman'; font-size:9

示例文本:

'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span>
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span>
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span>
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span>
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">6. </span>
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">Oktober </span>
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">1997</span>
<span style="font-family:'Times New Roman'; font-size:6pt; letter-spacing:0.05pt; vertical-align:super">2</span>
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">),</sp
《新罗马时代》;字号:9pt;字母间距:0.05pt“>测试 试验 试验 试验 6. 奥克托伯 1997 2.
),很难准确阅读,但请尝试:

]*>\d+?*>


通过搜索不在括号内的字符,可以更清楚地了解您得到的是什么。我还幸运地添加了。*用于混淆不重要的空白区域。

无论您使用哪种语言,都可以使用HTML解析器。由于您没有提到这一点,我现在无法提出任何建议。这不是直接的答案,而是建议:可能使用xml解析器对象来存储html,然后循环遍历每个标记并使用正则表达式。否则,您可能必须编写更复杂的正则表达式。这只是我的意见。好的,我将把它加载到XmlDocument(c),谢谢
]*>\d*?]*>\)
工作,谢谢帮助:)
<span style="font-family:'Times New Roman'; font-size:6pt; letter-spacing:0.05pt; vertical-align:super">2</span>
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">)
<span.*?>\d+?</span><span.*?>\)
<span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span><span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span><span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">test </span><span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">6. </span><span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">Oktober </span><span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">1997</span>***<span style="font-family:'Times New Roman'; font-size:6pt; letter-spacing:0.05pt; vertical-align:super">2</span><span style="font-family:'Times New Roman'; font-size:9pt; letter-spacing:0.05pt">)