正则表达式1.Pattern.matches(".\d.",str)判断是否包含数字2.Pattern.matches((".[a-z]."),str)) {3. (Pattern.matches(".[A-Z].",str)) {非字母数字4. (Pattern.matches(".[^a-z^A-Z^0-9].",str)) { 5.判断重复子串 for (int i = 0; i < length - 3; i++) { String substr...