import java.util.regex.Matcher;import java.util.regex.Pattern;
public class UrlParser {
/**
* @param args
*/
public static void main(String[] args) {
String s = "";
String mode = "]*)\">";
Pattern p = Pattern.compile(mode);
Matcher m = p.matcher(s);
while (m.find()) {
System.out.println("find...");
String url = m.group(1);
System.out.println("url:" + url);
}
}
}
试试JerichoHtml Java解析html工具包 我用过 可以交流