Search

Replace

Last Updated: Mar 8, 2023

Articles

Use this function to replace all occurrences of a substring with another substring in the input string.

Syntax

Replace (find_string, search_string, input)

Parameters

Input Parameter Name Description
find_string String to replace the search string
search_string String to search
input input string

Returns

Return value Description
text Returns the updated string

Sample

Replace (ef, cd, abcd)

  • Replace the string cd with the string ef in the input string abcd.
    Returns abef.

To view all the Text functions, click here.

Did you find what you were looking for?