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.
我有一个 html 页面,我想对其运行 xPath 查询以查找任何具有 id、name 等包含或类似值的元素,例如 name = 'tv_11223344' 或 name = 'tv_11223344'。
一直在网上找一些旧书,但我找不到任何看起来可以帮助我的东西。
非常期待任何想法或建议!
XPath 2.0支持正则表达式。
看看标准功能matches()。
matches()