我想在
标签内的文本中找到所有<span>
我尝试使用此正则表达式(?<=<span).*?(?=<\/span>)
来获取所有跨度,但我不能仅获取
我应该如何更改正则表达式?
<html><head></head>
<body>
<p class="style1771705281"><span class="style871908217">Hello my friend</span></p>
<p class="style1750113279">
<span class="style44553984">Test </span>
<span class="style555336916">email</span>
<span class="style640575066"> with spaces </span>
<span class="style136848908">Second</span>
<span class="style1584856224"> line </span>
<span class="style1964378683">Last</span>
<span class="style491288753"> line</span>
</p>
</body>
</html>
谢谢。