Here you can find the source of isQQ(String qq)
public static boolean isQQ(String qq)
//package com.java2s; //License from project: LGPL import java.util.regex.Pattern; public class Main { private final static Pattern Regex_QQ = Pattern.compile("[1-9]{5,10}"); public static boolean isQQ(String qq) { if (qq == null || qq.trim().length() == 0) { return false; }/*w w w . j a v a2 s . co m*/ return Regex_QQ.matcher(qq).matches(); } }