EditText t1 = (EditText) findViewById(R.id.t1); String a = t1.getText().toString(); // 대소문자 구분 숫자 특수문자 조합 9 ~ 12 자리 String pwPattern = "^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[$@$!%*#?&])[A-Za-z[0-9]$@$!%*#?&]{8,}$"; Boolean tt = Pattern.matches(pwPattern,a); if( tt == true){ Toast.makeText(this, "정규식이 맞음", Toast.LENGTH_SHORT).show(); } else{ Toast.makeText(this, "틀림", Toast.LENGTH_SHORT).show(); } Stri..