开发者

Xpath 'Like' operator to find value in html

开发者 https://www.devze.com 2023-03-07 10:01 出处:网络
I have an 开发者_JS百科html page which I would like to run a xPath query against to find any elements which have the id, name etc containing or like a value e.g name = \'tv_11223344\' or name = \'tv_1

I have an 开发者_JS百科html page which I would like to run a xPath query against to find any elements which have the id, name etc containing or like a value e.g name = 'tv_11223344' or name = 'tv_11223344'.

Been looking on line and through some old books but I cant find anything which looks like it will help me out.

Any ideas or suggestions are greatfully looked forward to!


In XPath 2.0 there is support for regular expressions.

Have a look at the standard function matches().

0

精彩评论

暂无评论...
验证码 换一张
取 消