var variable = "acd";
var string = "asasadfjfjjlvkveeacdkdddacd";
var oregular = new RegExp(variable, "g");
var string = string.replace(oregular, "aaaaaaa");
console.log(string);
var variable = "acd";
var string = "asasadfjfjjlvkveeacdkdddacd";
var oregular = new RegExp(variable, "g");
var string = string.replace(oregular, "aaaaaaa");
console.log(string);