无标题文章

public class Demo {

       public static void main(String[] args) {

               // TODO Auto-generated method stub

               String a = "14511111111";

               String b = "[1][345789][0-9]{9}";

               boolean flag = a.matches(b);

               System.out.println(flag);

       }

}

你可能感兴趣的:(无标题文章)