importjava.util.regex.Matcher;importjava.util.regex.Pattern;publicclass表达式{publicstaticvoidmain(Stringargs[]){//p("zhongguang");//p("abc".matches("..."));//p("a435a".replaceAll("\\d","-"));//Patternp=Pattern.compile("[a-z]{3,}");//定义了模式,作用是预先编译下...
查看全文