replaceAllが使えない

ExtendScriptでは使えないので正規表現を使う。

text.replaceAll('$', '') // replaceAll の場合
text.replace(/\$/g, '') // replace の場合