Java tutorial
//package com.java2s; import android.text.TextUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static boolean isMobileNO(String cellphone) { Pattern p = Pattern.compile("^[1][34578]\\d{9}$"); Matcher m = p.matcher(cellphone); if (!TextUtils.isEmpty(cellphone)) { return m.matches(); } return false; } }