Skip to content

Instantly share code, notes, and snippets.

@ferryzhou
Created January 1, 2016 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferryzhou/b8bae116feb4522caa72 to your computer and use it in GitHub Desktop.
Save ferryzhou/b8bae116feb4522caa72 to your computer and use it in GitHub Desktop.
google doc replace
function findAndReplace() {
var body = DocumentApp.getActiveDocument().getBody();
body.replaceText("Read more at location [0-9]+", "");
body.replaceText("• Delete this highlight", "");
body.replaceText("Add a note", "");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment