コードコピーは次のとおりです。 public static boolean ismobilenumber(string mobiles){ return pattern.compile( "^((13 [0-9]))|(15 [^4、// d])|(18 [^1^4、// d])// d {8}" ).Matcher(Mobiles).Matches(); }