Skip to content

Replace¤

Replace all occurrences of a string with another string.

Examples¤

Notation: List of values are represented via square brackets. Example: [first, second] represents a list of two values “first” and “second”.


Example 1:

  • Parameters

    • search: ``
    • replace: ``
  • Input values:

    1. [a b c]
  • Returns: [abc]


Example 2:

  • Parameters

    • search: abc
    • replace: ``
  • Input values:

    1. [abcdef]
  • Returns: [def]

Parameter¤

The string to search for

  • ID: search
  • Datatype: string
  • Default Value: None

Replace¤

The replacement of each match

  • ID: replace
  • Datatype: string
  • Default Value: None

Advanced Parameter¤

None

  • regexReplace — The Replace plugin substitutes a literal search string everywhere it occurs. The Regex replace plugin does the same kind of rewrite, but the match is defined by a regular expression rather than a fixed substring.
  • map — Replace performs in-place substitution of a substring, leaving the rest of the value intact. The Map plugin replaces entire values based on exact key matches and returns a configured default when no match is found.

Comments