How to remove double quotes from a middle of a string in TypeScript

1 Answer

0 votes
let s = '"javascript "node.js" typescript c c++ c#"';
console.log(s);
 
s = s.replace(/["]+/g, '');
 
console.log(s);
 
   
   
   
   
/*
run:
 
"javascript "node.js" typescript c c++ c#"
"javascript node.js typescript c c++ c#" 
   
*/

 

 



answered Feb 20, 2022 by avibootz
...