//휴대폰 번호 정규식 public boolean getCheckTelNo(String noStr) { String pattern = "^0[17](?:0|1|[6-9])-?(\\d{3,4})-?(\\d{4})$";; Pattern tellPattern = Pattern.compile(pattern); if(noStr == null || noStr.length()==0) return false; Matcher matcher = tellPattern.matcher( noStr); if(matcher.matches()) { return true; } else { return false; } }
댓글 없음:
댓글 쓰기