日期:2014-05-19 浏览次数:20622 次
public static void main(String[] args) { String s = "sfskdfjid=\"123\"23dfsfsid=\"456\""; Matcher m = Pattern.compile("id=\".+?\"").matcher(s); while(m.find()){ System.out.println(m.group()); } }