js remplacer plusieurs
string.replace('find1', 'replace1').replace('find2', 'replace2');
Tequilian
string.replace('find1', 'replace1').replace('find2', 'replace2');
var str = '[T] and [Z] but not [T] and [Z]';
var result = str.replace('T',' ').replace('Z','');
console.log(result);