Skip to content

Instantly share code, notes, and snippets.

@lanqy
Created May 22, 2013 03:27
Show Gist options
  • Save lanqy/5625051 to your computer and use it in GitHub Desktop.
Save lanqy/5625051 to your computer and use it in GitHub Desktop.
special characters
var speicalChar = /[^\w\s]/gi; // special characters
if(speicalChar.test(str)){
// do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment