Skip to content

Instantly share code, notes, and snippets.

@BrunoGiubilei
Created November 1, 2019 23:33
Show Gist options
  • Save BrunoGiubilei/f24276274c78109a3ca9a87173737a86 to your computer and use it in GitHub Desktop.
Save BrunoGiubilei/f24276274c78109a3ca9a87173737a86 to your computer and use it in GitHub Desktop.
Replace All in JS
.replace(new RegExp(','.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"), 'g'), '.')
@BrunoGiubilei
Copy link
Author

BrunoGiubilei commented Nov 1, 2019

in this exemple all comma its replaced by dot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment