var pattern = /([^가-힣\x20])/i;
var target = ''
if (pattern.test(target)) {
alert("자음, 모음 validation.");
}
https://codepen.io/beans9/pen/yLNgNGo
See the Pen 한글 자음 모음 테스트 by homin ahn (@beans9) on CodePen.
'Programming > Javascript' 카테고리의 다른 글
| [error] d3.event is undefined (0) | 2020.09.30 |
|---|---|
| [D3] d3 treemap text ellipses (0) | 2020.09.27 |
| dropzone.js upload cancel (0) | 2020.02.19 |
| ie11 window.scrollY undefined 문제 (0) | 2019.11.27 |
| [javascript] url 정규식, pakcage name 정규식 (0) | 2019.03.06 |