Syntax
replace(string, search, replace, n)
Description
The replace() function will replace the first n occurrences of search with replace and return the new string. If n < 0, there is no limit on the number of replacements.
Example
line="This is a senetnce" line=replace(line, "senetnce", "sentence",1) println(line) This is a sentence