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 125 views
2 answers 171 views
1 answer 251 views
1 answer 136 views
1 answer 114 views
...