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 130 views
2 answers 176 views
1 answer 268 views
1 answer 144 views
1 answer 123 views
...