Search and replace in a pad
replace_in_documentReplace an exact string in a collaborative pad with another string while preserving concurrent edits from other users. Set replace_all to change every occurrence or require a single unique match by default.
Instructions
Replaces an exact string in a pad with another. Only the matched ranges are edited, so concurrent edits elsewhere in the pad survive. By default the search string must match exactly once; set replace_all to change every occurrence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the pad, the part after # in its URL | |
| search | Yes | Exact string to find (no regex) | |
| replace | Yes | Replacement; may be empty to delete the match | |
| replace_all | No | Replace every occurrence instead of requiring a unique match |