Nodejs String Replace replaceAll($oldText,$replaceText)

Here you can find the source of replaceAll($oldText,$replaceText)

Method Source Code

String.prototype.replaceAll = function($oldText,$replaceText){
   return this.replace(new RegExp($oldText,"gm"),$replaceText);
};

Related

  1. replaceAll( token, newToken, ignoreCase )
    String.prototype.replaceAll = function( token, newToken, ignoreCase ) {
        var _token;
        var str = this + "";
        var i = -1;
        if ( typeof token === "string" ) {
            if ( ignoreCase ) {
                _token = token.toLowerCase();
                while( (
                    i = str.toLowerCase().indexOf(
    ...
    
  2. replaceAll( token, newToken, ignoreCase )
    String.prototype.replaceAll = function( token, newToken, ignoreCase ) {
        var _token;
        var str = this + "";
        var i = -1;
        if ( typeof token === "string" ) {
            if ( ignoreCase ) {
                _token = token.toLowerCase();
                while( (
                    i = str.toLowerCase().indexOf(
    ...
    
  3. replaceAll( token, newToken, ignoreCase )
    String.prototype.replaceAll = function( token, newToken, ignoreCase ) {
        var _token;
        var str = this + "";
        var i = -1;
        if ( typeof token === "string" ) {
            if ( ignoreCase ) {
                _token = token.toLowerCase();
                while( (
                    i = str.toLowerCase().indexOf(
    ...
    
  4. replaceAll( token, newToken, ignoreCase )
    String.prototype.replaceAll = function( token, newToken, ignoreCase ) {
        var _token;
        var str = this + "";
        var i = -1;
        if ( typeof token === "string" ) {
            if ( ignoreCase ) {
                _token = token.toLowerCase();
                while( (
                    i = str.toLowerCase().indexOf(
    ...
    
  5. replaceAll( token, newToken, ignoreCase )
    String.prototype.replaceAll = function( token, newToken, ignoreCase ) {
        var _token;
        var str = this + "";
        var i = -1;
        if ( typeof token === "string" ) {
            if ( ignoreCase ) {
                _token = token.toLowerCase();
                while( (
                    i = str.toLowerCase().indexOf(
    ...
    
  6. replaceAll()
    String.prototype.replaceAll = function() {
        var target = this;
        return target.split(" ").join("-");
    };
    String.prototype.numberToString = function() {
        var target = this;
        var storing = "";
        var strlength = target.length;
        var numbers = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"];
    ...
    
  7. replaceAll(AFindText, ARepText)
    String.prototype.replaceAll = function(AFindText, ARepText) {
        var raRegExp = new RegExp(AFindText, "g");
        return this.replace(raRegExp, ARepText);
    };
    
  8. replaceAll(AFindText, ARepText)
    String.prototype.replaceAll = function (AFindText, ARepText) {
        return this.replace(new RegExp(AFindText, "gm"), ARepText)
    };
    
  9. replaceAll(_old, _new)
    String.prototype.replaceAll = function(_old, _new){
        return this.replace(new RegExp(_old, 'g'), _new)
    };