Skip to content

Instantly share code, notes, and snippets.

@miketoth
Created December 10, 2018 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketoth/d546b69806ffa56351b20ed9ff3e1139 to your computer and use it in GitHub Desktop.
Save miketoth/d546b69806ffa56351b20ed9ff3e1139 to your computer and use it in GitHub Desktop.
JS punctuation regex
// more useful to replace this list with the weak character list.
str.replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g,"");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment