Java tutorial
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static boolean checkPhoneNumber(String value) { String regExp = "^[1]([3][0-9]{1}|59|51|50|58|88|89|82)[0-9]{8}$"; Pattern p = Pattern.compile(regExp); Matcher m = p.matcher(value); return m.find(); } }