java正则表达式判断字符串是否仅含有数字和字母时间:2025-02-11 07:49:06public static boolean isLetterDigit(String str) { String regex = "^[a-z0-9A-Z]+$"; return str.matches(regex); }