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

1 Answer

0 votes
let s = '"javascript "node.js" typescript c c++"';
console.log(s);

s = s.replace(/["]+/g, '');

console.log(s);

  
  
  
  
/*
run:

"javascript "node.js" typescript c c++"
"javascript node.js typescript c c++"
  
*/

 



answered Feb 20, 2022 by avibootz

Related questions

1 answer 234 views
2 answers 299 views
1 answer 350 views
1 answer 231 views
1 answer 219 views
...