Skip to main content

Remove the last n chars

This function removes the last n characters, while previous ones are copied to the output as is.
Option Description
Extra parameter This function requires an extra parameter.

The extra parameter is the number of characters to be removed.

In the first example, the last two characters are removed.

In the second example, the last four characters are removed.

Input value Extra parameter Example of a masked value
Jack "2" Ja
S1000D "4" S1

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!