Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用 xpath 从下面的代码中提取 3 个不同的值吗
<div class="demo">Prize - 4 G - 14.15</div>
计划的结论必须告知以下内容:
第一名:奖品
第二: 4G
第三天: 14.15
先感谢您
这三个 XPath 将获取信息:
substring-before(//div,' - ') substring-before(substring-after(//div,' - '),' - ') substring-after(substring-after(//div,' - '),' - ')
但我不确定你用这个做什么,所以我不确定这是你真正想要的。