如下链接:
String = " </a> <b>1</b>
<a href="/news/201804/28/207901_2.html">2</a>
<a href="/news/201804/28/207901_3.html">3</a>
<a href="/news/201804/28/207901_4.html">4</a>
<a href="/news/201804/28/207901_5.html">5</a>
<a href="/news/201804/28/207901_6.html">6</a>
<a href="/news/201804/28/207901_2.html">下一页 "
使用Java中String类的split方法拆分:
String[] split = String.split("href=\"");
String value = split[split.length-1];
System.out.println("value = " + value);
输出结果:value = "/news/201804/28/207901_2.html"