Salinan kode adalah sebagai berikut: public static boolean ismobileNumber (string mobiles) { Return Pattern.Compile ("^((13 [0-9]) | (15 [^4, // D]) | (18 [^1^4, // D])) // D {8}" ) .Matcher (ponsel) .matches (); }