public class StrUtils {
public static void main(String[] args) throws IOException {
String content ="网页内容";
Pattern p = Pattern.compile("<a.*?>(.+?)</a>");
Matcher m = p.matcher(content);
while (m.find()) {
System.out.println(m.group(1));
}
}
}