日期:2014-05-20 浏览次数:20651 次
String url="www.baidu.123.com"; String reg="[0-9]{1,3}";
Pattern p = Pattern.compile("a"); Matcher m = p.matcher("aaaaab"); while(m.find()){ System.out.println(m.start()); }