Created
October 29, 2019 21:24
-
-
Save gthrm/e38d0d1efa7850f1856d992ebc164f26 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const str = 'some string' | |
str.replace(/[ .,\/#!$%\^&\*;:{}=\-_`~()]/g, '_'); //удалит все знаки и пробел |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment