Skip to content

Instantly share code, notes, and snippets.

@brownsoo
Last active February 9, 2017 10:21
Show Gist options
  • Save brownsoo/3602c375aba34e74d140b23273bfb5af to your computer and use it in GitHub Desktop.
Save brownsoo/3602c375aba34e74d140b23273bfb5af to your computer and use it in GitHub Desktop.
Regular expression for white character list
// 정해진 문자, 숫자, 특수문자가 아닌 문자가 있는지 체크 -- [^X]형식으로
// 입력가능한 특수문자: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
var reg = /[^a-zA-Z0-9!"#$%&'\(\)\*+,\-./:;<=>?@\[\\\]\^_`\{|\}~]/g;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment