Java tutorial
//package com.java2s; import android.text.TextUtils; import java.util.regex.Pattern; public class Main { public static boolean isValidTelNumber(String telNumber) { if (!TextUtils.isEmpty(telNumber)) { String regex = "(\\+\\d+)?1[34578]\\d{9}$"; return Pattern.matches(regex, telNumber); } return false; } }