function function1() {
var str = "prob[0].Key = '101';prob[10].Key = '101';prob[newIloop].Key = '101';prob[0].Key = '101'";
str = str.replace(/prob\[[^\]]*?\]/g, 'prob[__]');
alert(str);
}
次のような出力を生成したい
prob[ind(0)].Key = '101'; etc....