Skip to main content
Replace string in text
Wrk Product avatar
Written by Wrk Product
Updated over 10 months ago

Finds and replaces all instances of a specified string from the text provided.

Common use cases

  • Data Manipulation

  • Data Management

Category

  • Text

Inputs (what you have)

NAME

DESCRIPTION

TYPE

REQUIRED

EXAMPLE

Text

The text to be modified

Text (Long)

Yes

Luke is the best character in Star Wars

Find string

The text to be found and replaced.

Text (Long)

Yes

Luke

Replace value

The value used as a replacement. If left blank this will cause the found text to be removed

Text (Long)

No

Han Solo

Case insensitive?

Indicator if the ‘Find string’ input should look for case insensitive matches

True/False

No

Note: The value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NAME

DESCRIPTION

TYPE

REQUIRED

EXAMPLE

Edited text

The text to be The original “Text” modified where all instances of the “Find string” are replaced by the “Replace value”

Text (Long)

Yes

Han Solo is the best character in Star Wars

Outcomes

NAME

DESCRIPTION

Success

This status is selected if the text was successfully replaced.

No Result

This status is selected if the text to replace is not in the provided text.

Requirements

  • N/A

Did this answer your question?