수신번호 유효성 검사 공통 함수 업데이트
@24956e9112a6244a03956bbf358e5b31411e3e67
--- src/main/java/itn/com/cmm/util/MJUtil.java
+++ src/main/java/itn/com/cmm/util/MJUtil.java
... | ... | @@ -15,7 +15,9 @@ |
| 15 | 15 |
* 대시 유무 상관없음 |
| 16 | 16 |
*/ |
| 17 | 17 |
public static boolean checkHpNum(String str) {
|
| 18 |
- String regExp = "^(01[016789]{1}|070)-?[0-9]{3,4}-?[0-9]{4}$";
|
|
| 18 |
+ |
|
| 19 |
+ String regExp = "^(050[2345678]{1}|01[016789]{1})-?[0-9]{3,4}-?[0-9]{4}$";
|
|
| 20 |
+ //String regExp = "^(01[016789]{1}|070)-?[0-9]{3,4}-?[0-9]{4}$";
|
|
| 19 | 21 |
return Pattern.matches(regExp, str); |
| 20 | 22 |
} |
| 21 | 23 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?