驗證一個字符串是否符合正則表達式--matches()函數

public static void main(String[] args) { checkTelNumber(); checkQQ(); } private static void checkQQ() { String QQNumber = "1247832904"; boolean b = QQNumber.matches("[1-9][\\d]{4,9}"); S
相關文章
相關標籤/搜索