Replace Function

  • Updated

The Replace function replaces all occurrences of a substring with another string.

Syntax

 

The Replace function replaces all occurrences of a substring with another string.

 

Replace(string, searchValue, replaceValue)

 

 

Arguments:

 

 

 

string

String - A string.

 

 

searchValue

String - A substring to search for.

 

 

replaceValue

String - The replacement value.

Remarks

  • Example: Replace("abba", "b", "a") returns "aaaa".

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.