For the life of me I cannot figure out how to do this. I want basically chop off the last 5 characters in a given piece of text, the text is always going to be longer than 5 characters but will vary in length e.g 10-15 characters.
I’ve tried:
Truncate, but that doesn’t work because of the text length variable
I’ve tried using regex (.{3}) but that only captures the last 3 characters. Any way I can invert what it captures?
Unless you mean, first establish what the last 5 characters are (by truncating from end to 5), then split the main text by those characters, and select the first item? That would work.
You could do the same with find and replace: truncate the string to 5 chars form the end, then use find and replace to replace those character in the original string with nothing.
Both would work, but Text:truncated to (Text:number of characters - 5) is simpler (I think so anyway).
I saw a truck driving down the road tonight with 3 goats tied to the back trying to trot behind it…jerk didn’t know he had been dragging one of those goats for a few hundred yards, the poor thing.