正則表達式:必需要有一個小寫字母,一個大寫字母和一個數字,而且是8-16位

public static boolean isMobileNO(String mobiles) { Pattern pattern = Pattern.compile("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[A-Za-z0-9]{8,16}$"); Matcher matcher = pattern.matcher(mobiles); bo
相關文章
相關標籤/搜索