Skip to content

Instantly share code, notes, and snippets.

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