Android Phone Number Check isMobileNO(String phoneNum)

Here you can find the source of isMobileNO(String phoneNum)

Description

is Mobile NO

Declaration

public static boolean isMobileNO(String phoneNum) 

Method Source Code

//package com.java2s;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {

    public static boolean isMobileNO(String phoneNum) {
        final String regx = "^((13[0-9])|(15[^4,\\D])|(18[0-9]))\\d{8}$";

        Pattern p = Pattern.compile(regx);
        Matcher m = p.matcher(phoneNum);

        return m.matches();
    }/*  w  w  w  .j a va 2  s  .  com*/
}

Related

  1. isPhoneNumber(String inputStr)
  2. isPhone(String phoneNumber)
  3. isPhoneNumber(final String phone)
  4. isTelNumAvailable(String telNum)
  5. isMobile(String mobiles)
  6. isLegalPhoneNumber(String phoneNumber)
  7. checkPhone(String phone)
  8. isPhoneNumber(String phoneNum)