How to obtain all parts of a string except for the last segment?
How can I get all parts of a string except for the last segment? For example, given "This is a sentence," using -1 can get the last word "sentence." Using [1 3] can get "This is a," but since the string's length varies each time, the positions are not fixed. Is there a way to directly get all parts of the string except for the last segment?
Names Default To Here( 1 );
Word( -1, "This is a sentence...