我可以匹配sometext
并且othertext
在
<br>
sometext
<br>
othertext
使用 xpath 选择器'//br/following-sibling::text()'
<br>
但是如果元素后只有空格
<br>
<br>
othertext
只有第二场比赛发生。是否也可以匹配空格?
我试过了
//br/following-sibling::matches(., "\s+")
尝试匹配空白但没有成功。
我可以匹配sometext
并且othertext
在
<br>
sometext
<br>
othertext
使用 xpath 选择器'//br/following-sibling::text()'
<br>
但是如果元素后只有空格
<br>
<br>
othertext
只有第二场比赛发生。是否也可以匹配空格?
我试过了
//br/following-sibling::matches(., "\s+")
尝试匹配空白但没有成功。