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 238 views
2 answers 303 views
1 answer 353 views
1 answer 233 views
1 answer 222 views
...