Here you can find the source of replaceAll(search, replacement)
String.prototype.replaceAll = function(search, replacement) { let target = this;// w w w .j a v a2 s . co m return target.replace(new RegExp(search, 'g'), replacement); };
String.prototype.replaceAll = function(search, replace){ return this.split(search).join(replace);
String.prototype.replaceAll = function(search, replace) { if(!replace) { return this; return this.replace(new RegExp(helpers.escapeRegExp(search), 'g'), replace); };
String.prototype.replaceAll = function(search, replacement) { var target = this; return target.split(search).join(replacement); };
String.prototype.replaceAll = function(search, replacement) { var target = this; return target.replace(new RegExp(search, 'g'), replacement); };
String.prototype.replaceAll = function(search, replacement) { 'use strict'; return this.split(search).join(replacement); };
String.prototype.replaceAll = function(search, replacement) { var target = this; return target.split(search).join(replacement); };
String.prototype.replaceAll = function(search, replacement) { var target = this; return target.split(search).join(replacement); }; for (var i=0; i<size(); i++) { var item = str(read(i)); print("(" + i + ")" + " " + item.replaceAll("\\n", "(newline)") + "\\n");
String.prototype.replaceAll = function(search, replacement) { const target = this; return target .split(search) .join(replacement); };
String.prototype.replaceAll = function(search, replacement) { var target = this; return target.replace(new RegExp(search, "g"), replacement); };