replace()

Read(318) Label: replace, source string, substring,

Description:

Replace a specified substring of a source string.

Syntax:

replace (src,a,b)

Note:

The function replaces the substring a of string src with another string b.

Parameters:

src

Source string

a

The substring of a source string

b

The string with which the specified string will be replaced

Options:

@q

 A quoted specified string won’t be replaced

Return value:

A string after the replacement

Example:

replace("123321","2","two")

1two33two1

replace("abc'abc'def","a","China")

Chinabc'Chinabc'def

replace@q("abc'abc'def","a","China")

Chinabc'abc'def