Created
November 1, 2019 23:33
-
-
Save BrunoGiubilei/f24276274c78109a3ca9a87173737a86 to your computer and use it in GitHub Desktop.
Replace All in JS
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
.replace(new RegExp(','.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"), 'g'), '.') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in this exemple all comma its replaced by dot.