ReplaceLast

Example

In this example, we are passing the required parameters to the function transformation object using a Variables object.

Where,

str = ABABABA

lookFor = b

replaceWith ­= C

charsToRemove = False

Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned a string, having replaced the last occurrence of a specified string with another provided string.

© Copyright 2023, Astera Software