Node.js examples for String:String Value
Delete all blank spaces, all pattern occurrences
String.prototype.deleteBlankSpaces = function () { return this.replace(/\s/gi,""); }; String.prototype.deleteOccurrences = function (pattern) { return this.replace (RegExp(pattern,'gi'),""); };