Ver originalfunction my(z,text){for(var i=1; i<text.length; i++){var iexp = new RegExp('{'+i+'}');z = z.replace( iexp, text[i-1]);}return z;}