Replace

This Flow Script tutorial explains how to use the Replace function with syntax and examples.

Description

The Replace function replaces all instances of the search string in input with replacement. Replace is case sensitive.

Syntax

‌The syntax for the Replace function is:

Replace(input, search, replacement)

Parameters

input - the string from which the characters are returned.

search - the string which is to be replaced.

replacement - the new value.

Returns

‌The Replace function returns a string.

Example

Let's look at some Replace function examples and explore how to use the Replace function.‌

Replace("Hello World", "e", "u")
Result: Hullo World

Replace("Hello World", "World", "")
Result: Hello 

Replace("Hello World", "h", "y")
Result: Hello World

Last updated