Removing last 2 characters from a string[Uploading: Screenshot 2024-05-10 at 4.18.36 PM.png…]()

I am trying to figure out how to trim just the last 2 characters from a string before I save it. Any help is greatly appriciated!

Your results truncated by 7.

Or use a RegEx expression to remove that.

Ideally I would like to get a character count and remove two from the back because I don’t know how long the string will be but I do know I will always want to axe the last two characters.

Your solution is above.

RegEx FTW, thank you!

This topic was automatically closed after 70 days. New replies are no longer allowed.