Pattern
static boolean matchs(" "," ");
//*{0,}、+{1,}、?{0,1}
Boolean r=Pattern.matches("001[\\d]*", "001001003");
System.out.print("r:"+r);//true
Boolean r=Pattern.matches("image/bmp|image/png|image/gif|image/jpeg", "image/jpe");
System.out.print("r:"+r);//false*/