Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

added 31 characters in body
Source Link
Gumbo
  • 657.5k
  • 112
  • 792
  • 852

I want to replace the smart quotes like ‘ ’ " " – —, , " and " to regular codesquotes. Also, I wanted to replace the © ® TM©, ® and TM. I used the following code. But it doesn't help. Kindly help me to resolve this issue.

str.replace(/[""]/g, '"'); str.replace(/[‘’]/g,"'");

str.replace(/[""]/g, '"');
str.replace(/[‘’]/g, "'");

I want to replace the smart quotes like ‘ ’ " " – — to regular codes. Also, I wanted to replace the © ® TM. I used the following code. But it doesn't help. Kindly help me to resolve this issue.

str.replace(/[""]/g, '"'); str.replace(/[‘’]/g,"'");

I want to replace the smart quotes like , , " and " to regular quotes. Also, I wanted to replace the ©, ® and TM. I used the following code. But it doesn't help. Kindly help me to resolve this issue.

str.replace(/[""]/g, '"');
str.replace(/[‘’]/g, "'");
Source Link
Babu
Babu

Replace method doesn't work

I want to replace the smart quotes like ‘ ’ " " – — to regular codes. Also, I wanted to replace the © ® TM. I used the following code. But it doesn't help. Kindly help me to resolve this issue.

str.replace(/[""]/g, '"'); str.replace(/[‘’]/g,"'");

lang-js

AltStyle によって変換されたページ (->オリジナル) /