Replace

Description
Replace all matching patterns within the string with the replacement text. Case sensitive.

Syntax
lastindexof

Parameters

 * source
 * any text
 * pattern
 * any string to find one or more of within the source text
 * replacement
 * any text to replace the matches with

Examples
var sourcetext Hello World eval result replace("%sourcetext","o","Z") Result: HellZ WZrld