substitute() Function

Function

substitute( text, find, replace_with )

Substitutes a specific part of a string with another string.

Parameters

Keyword Type Description

text

Text

The string to be modified.

find

Text

The part of the string that will be replaced.

replace_with

Text

The replacement substring.

Returns

Text

Examples

You can experiment with this function in the test box below.

Test Input

substitute("hello world","hello","my") returns my world

Open in Github Built: Mon, Oct 18, 2021 (02:58:47 PM)

On This Page

FEEDBACK