nekit44,
var str = "Type=Cyber_TIME=*_5_K=1.7*";
var str2 = "Type=Cyber_TIME=3_5_K=1.70";
var target = "*"; // цель поиска
var all = [];
var pos = 0;
while (true) {
var foundPos = str.indexOf(target, pos);
if (foundPos == -1) break;
all.push(foundPos - all.length);
pos = foundPos + 1;
}
all.forEach(function (item, i) {
str = str.slice(0,item) + str.slice(item+1)
str2 = str2.slice(0,item) + str2.slice(item+1)
});
console.log(str, str2);