Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created February 7, 2016 17:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonekorean/4552e384f3aba09a59bd to your computer and use it in GitHub Desktop.
Save lonekorean/4552e384f3aba09a59bd to your computer and use it in GitHub Desktop.
String replace, escaped
var str = '1 + 1 + 1 = 3';
str.replace(/\+/g, 'plus');
// "1 plus 1 plus 1 = 3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment