자바스크립트 영숫자 정규식 JS Alphanumeric Regex

HanGuk Shin·2020년 9월 29일
0
var reg = /^[a-zA-Z0-9]+$/;

if(!reg.test(data.name)){
alert("아이디를 영숫자로만 작성해주세요.");
return false;
}
profile
Get to the point

0개의 댓글