Created
December 29, 2019 10:59
-
-
Save HerbertLim/c6e51485b6dc690f0d0e73de2d2e6b1c to your computer and use it in GitHub Desktop.
A regular expression when removing space, comman, (, and ) from given string
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
const newString = _.replace(givenString, /\(|\)|\s|,/g, '') | |
const newString2 = givenString.replace(/\(|\)|\s|,/g, '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment