Replace

Replaces occurrences of substring1 in a string with substring2, in a specified scope. The search is case-sensitive.

Returns: string

Usage

Replace( string, substring1 [, substring2 [, scope ] ] )

Arguments

Argument Description Default
string
(string, required)

String in which to search.

substring1
(any, required)

Substring for which to search. Optionally pass a Struct with key/value pairs to do a replace all

substring2
(any, optional)

Substring with which to replace the found matches. This arg is required if the substring1 arg is a string

scope
(string, optional)

scope for the execution: - one (default): replaces only the first occurrence - all: replaces all occurrences

one

Examples

There are currently no examples for this function.

See also