← All nodes
Unstructured Text

Find and Replace

Replace every occurrence of a word, phrase or pattern in one go.

When to use it

Typical uses: Updating a product name or date across a long document; Removing unwanted words or characters; Converting separators, such as semicolons to commas.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Text columnselect—Text
FindtextYesText to find
Replace withtext—Replacement (can be empty)
Match casecheckbox—false
Whole words onlycheckbox—false
Use regular expressioncheckbox—false
Generate New Columncheckbox—false
New Column Nametext—Default: <column> Result
Insert Afterselect—After the column
When a value cannot be convertedselect—stop

Example

Find and Replace: an example

  • Find=cat
  • Replace with=dog
  • Whole words only=Ticked
Text arriving
Text
The cat sat on the mat. Cats and category pages are different.
The text after this node
Text
The dog sat on the mat. Cats and category pages are different.

Finding “cat” and replacing it with “dog”, with Whole words only ticked:

Worth knowing

  • How do I delete text instead of replacing it? Leave the “Replace with” box empty.
  • How do I replace line breaks? Tick Use regular expression and search for \n.
  • Which regular expression features are supported? The tool uses JavaScript regular expressions with Unicode support, including groups, lookarounds and classes such as \p{L} for any letter.
  • Works on any text column, not only Text Input's: pick it under Text column. Tick Generate New Column to keep the original next to the result.

Others in Unstructured Text