var regExp = /[ \{\}\[\]\/?.,;:|\)*~`!
^\-_+@\#$%&\ '\"\\(\=]/gi; var str = $( "#inputid").val(); var text = str.replace(regExp, "") $( "#inputid").val(text.trim()); 출처 : https://three-father-programming.tistory.com/17 특수문자 및 공백 제거 var regExp = /[ \{\}\[\]\/?.,;:|\)*~`!
^\-_+@\#$%&\ '\"\\(\=]/gi; var str = $( "#inputid").val(); var text = str.replace(regExp, "") $( "#inputid").val(text.trim()); three-father-programming.tistory.com...
#
javascript
#
공백및문자제거
#
공백제거
#
문자및공백제거
#
문자제거
#
자바스크립트
#
정규식
#
제거