Java QQ Number Check isQQ(String qq)

Here you can find the source of isQQ(String qq)

Description

is QQ

License

Apache License

Declaration

public static boolean isQQ(String qq) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.regex.Pattern;

public class Main {

    public static boolean isQQ(String qq) {
        Pattern pattern = Pattern.compile("^[1-9][0-9]{4,14}$");
        return pattern.matcher(qq).matches();
    }/*ww  w.  j a va 2  s.c om*/
}

Related

  1. isQQ(String qq)
  2. isQQ(String str)
  3. isQq(String str)