Script to remove commas and apostrophes from text layer
I'm trying to simply remove all spaces, commas and apostrophes from a text layer. I've got the spaces out with the below code, however, doing something similar for the apostrophes doesn't seem to work. Any thoughts? Thanks!
myText = myText.replace(/ |,/g, "");
myText = myText.replace(/'|,/g, "");

