Java tutorial
//package com.java2s; public class Main { public static boolean checkMobile(String mobile) { String mobilePattern = "^1[3,4,5,8]\\d{9}$"; return mobile.matches(mobilePattern); } }