0
votes

I am trying to replace/remove all instances of double quotes specified in a string in Google Apps Script but am unsuccessful in doing this.

I have tried the following:

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

but this does not work in Google Apps Script, works in JavaScript.

Can you please advise if this is possible? Thanks in advance!

1
Have you found an answer to this question? - Ben Simmons

1 Answers

1
votes

This should work.

str = str.replace(/\"+/g,"");