Mwnci replaceall() Function

Syntax

replaceall(string, search, replace)

Description

The replaceall() function will replace all occurrences of search with replace and return the new string.

Example

line="foo baa foo baa"
line=replaceall(line, " baa", "bar")
println(line)


foobar foobar