开发者

Xpath 'Like' operator to find value in html

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜