日期:2014-05-20 浏览次数:20706 次
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()); } }