ZreplaceText

Replaces occurrences of a sample substring in text with a new string, with an optional limit on the number of replacements.

Syntax

ZreplaceText{text;sample;new;amount?}

Arguments

NameTypeRequiredDefault
textstringYes-
samplestringYes-
newstringYes-
amountintegerNo-1

Example

ZreplaceText{hello world world;world;earth}