Answers for "javascript string replace different characters"

6

str replace javascript all

str.replace(/abc/g, '');
Posted by: Guest on May-16-2020
0

multiple replace

var str = '[T] and [Z] but not [T] and [Z]';
var result = str.replace('T',' ').replace('Z','');
console.log(result);
Posted by: Guest on May-12-2020

Code answers related to "javascript string replace different characters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language