Trimming string from the back


It seems simple but I don’t know how to do it - how can I get x amount of characters from the back of the string? Ie I have 000000001 and I want to get 001.

This seems to work.


The String.Remove node also works quite well :

Thank you!

@mellouze - I don’t think it would work as I want to count it from the back (I got strings with varied length and wouldn’t like to cut it always at the same point).

Oh, i didn’t get your initial question very well then.

String.Remove could work if you linked the count input to the length of the initial string, but John’s version seems better :


1 Like