Here you can find the source of isQQ(String qq)
public static boolean isQQ(String qq)
//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*/ }