SubstringReplace

Replaces a substring within a string.

Table 1. Input Properties
Property Type Description
Text String Returns null if text is null.
Text Start Position Number The position index starts at 1. Defaults to 1 if textStartPosition is null.
Text Length Number Defaults to the end of the string if textLength is null.
Replacement String Defaults to empty string if replacement is null
Replacement Start Position Number Defaults to zero if start position is null.
Replacement Length Number Defaults to the remaining length of replacement if replacementLength is null.

Example

  • Text = "abcdef"
  • textStartPosition is 3
  • textLength is 2
  • replacement is ABCDEF
  • replacementStartPosition is 1
  • and replacementLength is 3

Result: "abABCef. The text "cd" has been replaced with "ABC".