比如html代码中有嵌套的table元素,要去到外层和内层的table的outerHtml。这需要进行正则的嵌套匹配。html代码如下:
</td>
I don’t understand what you are talking about. xpath maybe you can use.
If you want to parse xml or html, consider using nokogiri. However, I really don't understand your question very clearly.
I don’t understand what you are talking about. xpath maybe you can use.
If you want to parse xml or html, consider using nokogiri. However, I really don't understand your question very clearly.