Node.js examples for String:Replace
Replace all pattern occurrences
String.prototype.replaceOccurrences = function (pattern, replace) { return this.replace (RegExp(pattern,'gi'),replace); };