Created
December 10, 2018 20:55
-
-
Save miketoth/d546b69806ffa56351b20ed9ff3e1139 to your computer and use it in GitHub Desktop.
JS punctuation regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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