大家好!
请教大家一个问题
本人最近在用JSoup解析HTML,其select()语法,支持正则表达式,但不知道是支持哪个类型或引擎的?在其官网上也没找到。
请知晓者帮忙回复。
谢谢!
中国学网其他用户对此信息的回答或评论:我现在也在用jsoup解析HTML,就是这样的:jsoup使用标准regex。可以查看jsoup的文档class Selector,里面有:
[attr~=regex] |
elements with an attribute named "attr", and value matching the regular expression | img[src~=(?i)\\.(png|jpe?g)] |