String.prototype.replaceString
=
stringReplaceAll;
function stringReplaceAll(AFindText,ARepText) ... {
var raRegExp = new RegExp(AFindText.replace(/([()[]...{}^$+-*?."'|//])/g,"/$1"),"g");
return this.replace(raRegExp,ARepText);
}
function stringReplaceAll(AFindText,ARepText) ... {
var raRegExp = new RegExp(AFindText.replace(/([()[]...{}^$+-*?."'|//])/g,"/$1"),"g");
return this.replace(raRegExp,ARepText);
}