PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Replace

Replaces every occurrence of a text inside another text, with or without matching letter case.

Replace searches a text for a value and returns a new text in which every occurrence of that value is replaced. Use it to swap a word in a template, remove a character, or clean up a value before you store it.

Add the action

In the Process Designer toolbox, open String and pick Replace (or type Replace in the search box).

The Replace action properties: Source String, Search String, Replacement String, Ignore Case and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Source StringInputTextYesThe text to search and change.
Search StringInputTextYesThe text to look for. It cannot be empty.
Replacement StringInputTextNoThe text to put in its place. Leave it empty to delete every occurrence.
Ignore CaseInputBoolean (true/false)NoTick it to match the search text in any letter case. Off by default.
ResultOutputTextYesThe text after all replacements.

Example

Source StringSearch StringReplacement StringIgnore CaseResult
This is a cat. The cat sleeps.catdogoffThis is a dog. The dog sleeps.
Cat cat CATcatdogoffCat dog CAT
Cat cat CATcatdogondog dog dog
a-b-c-(empty)offabc
abczxoffabc

Good to know

  • Every occurrence is replaced, not only the first one.
  • Case-sensitive unless you tick Ignore Case.
  • An empty Search String fails the step with "The value cannot be an empty string. (Parameter 'oldValue')".
  • If the search text is not found, Result is the unchanged source text; the step does not fail.
  • The search text is plain text. To replace by a pattern (all digits, any email addressโ€ฆ), use RegEx Replace.

On this page