Created
May 28, 2012 17:17
-
-
Save femontanha/2820158 to your computer and use it in GitHub Desktop.
Regex replace blank space for '-'
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
foo.replace(/\s/g,'-'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment