수신번호 유효성 검사 공통 함수 업데이트
This commit is contained in:
parent
4c83954db6
commit
24956e9112
@ -15,7 +15,9 @@ public final class MJUtil {
|
|||||||
* 대시 유무 상관없음
|
* 대시 유무 상관없음
|
||||||
*/
|
*/
|
||||||
public static boolean checkHpNum(String str) {
|
public static boolean checkHpNum(String str) {
|
||||||
String regExp = "^(01[016789]{1}|070)-?[0-9]{3,4}-?[0-9]{4}$";
|
|
||||||
|
String regExp = "^(050[2345678]{1}|01[016789]{1})-?[0-9]{3,4}-?[0-9]{4}$";
|
||||||
|
//String regExp = "^(01[016789]{1}|070)-?[0-9]{3,4}-?[0-9]{4}$";
|
||||||
return Pattern.matches(regExp, str);
|
return Pattern.matches(regExp, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user