检查正则表达式教程
您的代码应类似于以下内容:
String input = "The quick brown fox jumps over the lazy dog";Matcher matcher = Pattern.compile("e").matcher(input);while ( matcher.find() ) { // Do something with the matched text System.out.println(matcher.group(0));}
检查正则表达式教程
您的代码应类似于以下内容:
String input = "The quick brown fox jumps over the lazy dog";Matcher matcher = Pattern.compile("e").matcher(input);while ( matcher.find() ) { // Do something with the matched text System.out.println(matcher.group(0));}