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
| Field | Required | What it does |
|---|---|---|
| Key | Yes | The text to search for |
| Value | No | The replacement text (empty to delete matches) |
| Variable | No | Name of the variable where the result will be stored |
| Case sensitive | No | Whether 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