Google Workspace: Find and replace all occurrences of text

Find and replace all occurrences of text.

Help Centre › Functions & Formulas

Find and replace all occurrences of text.

Add it to a process

In the process designer, open the Add step tab. Find Find and replace all occurrences of text under Google Workspace › Docs, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
KeyYesThe text to search for
ValueNoThe replacement text (empty to delete matches)
VariableNoName of the variable where the result will be stored
Case sensitiveNoWhether the search is case-sensitive (default true) Default: on.

See all Google Workspace steps.

Tips

  • Use placeholder tokens like {{name}} in document templates for easy replacement
  • The function replaces all occurrences, not just the first

Related functions

  • Get text – Get the document text to verify replacements
  • Insert text – Insert text at a position

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.