Answers for "regex replace all multiple strings"

0

js regex replace multiple matches

str.replace(/-|:|./g,''); // replace all matches of "-", ":" and "." in str
Posted by: Guest on September-22-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 "regex replace all multiple strings"

Code answers related to "Javascript"

Browse Popular Code Answers by Language