/** * 文本輸入框做輸入內(nèi)容校驗(yàn)邏輯,必須包含英文或者漢字中的一種的條件,不能為純數(shù)字,純符號(hào) */public static boolean isEnglishorChinese(String str){   Pattern regex = Pattern.compile(".*([//u4E00-//u9FA5]|[a-zA-Z])+.*");       return regex.matcher(str).matches();}經(jīng)過(guò)檢驗(yàn)
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注