How-to · Strings
Replace occurrences of one substring with another
Softanza
StzReplace("I like cats", "cats", "dogs")
#--> "I like dogs"Output
I like dogs
ran: printed what the recipe promises
run on 2026-10-02 22:33 inside the library at commit 0e72e2e2c; the expression carrying the promise was printed for the run · The recipe on GitHub(opens in a new tab)
The methods
See also
Words for this task: replace, substitute, swap text, find and replace, change

