참조 : http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_html&wr_id=136947&page=&sfl=&stx=&spt=&page=&cwin=#c_137001 〈는 특수문자 〈script> var text='test 198034617823 *&%$$#(@)@) 시험 ' var replaced=text.replace(/[^ㄱ-ㅎ가-�A-Za-z]/g,'') document.write(replaced) 〈/script>