从网页上,我想搜索所有 id 以 'Tomcat_'
开头并以 '_released'
结尾的 h3
<h3 id="Tomcat_9.0.19_Released">
<span class="pull-right">
2019-04-13
</span>
Tomcat 9.0.19 Released
</h3>
first:埃克斯普尔
DomNodeList<DomElement> ss = page.getElementsByTagName("h3");
后来:埃克斯普尔
String value = temp.getAttribute("id");
if(value.startsWith("Tomcat_")&value.endsWith("_released")){
System.out.println(value);
}