发布网友 发布时间:2024-10-21 14:14
共4个回答
热心网友 时间:2024-11-08 19:25
String reg="^[a-zA-Z]{1,}[A-Z]+[a-z]+[a-z]*[A-Z]*$";热心网友 时间:2024-11-08 19:24
String expression = "^(([a-z])+([A-Z])+)|(([A-Z])+([a-z])+)|$";热心网友 时间:2024-11-08 19:29
Pattern p = Pattern.compile(".*?[A-Z]+?.*?[a-z]+?.*?|.*?[a-z]+?.*?[A-Z]+?.*?");热心网友 时间:2024-11-08 19:23
"^(?=.*[A-Z]).*[a-z]"