Pattern.compile("^[A-Z]+$");
输入ASD 验证true输入AsD 验证false
请问输入_ASB 或者 AS_D 或ASD_ 验证true
正则应该怎么写啊?
Pattern.compile("^[A-Z_]+$");