This seems like a simple problem but I can't seem to find the solution (or one that works) anywhere.
I have the following string:
"REDEACTED is a REDEACTED, REDEACTED, which focuses on the research and development of REDEACTED. It has 3 main brands, REDEACTED, a REDEACTED, and REDEACTED, a therapeutic line. It’s last brand is a REDEACTED line, which is set to be sold to REDEACTED offices. Through its subsidiaries, REDEACTED and REDEACTED, REDEACTED is able to cultivate, process and develop its REDEACTED through the 2 company’s facilities, which are located in REDEACTED. Though it hasn’t sold any of its product yet, it plans to solidify partnerships in the near future. "
and I'm trying to replace all instances of ’ with '.
I have tried things along the lines of
newText = newText.replace("/'/gi", "'")
newText = newText.replace("’", "'")
newText = newText.replace("/’/gi", "'")
with no real luck, any suggestions?
newText.replace(/'/gi, "'")remove the double quotes around.replace(/[‘’]/g,"'").replace(/[“”]/g,'"');