ExcludeLastWord

STD.Str.ExcludeLastWord( text )

STD.Uni.ExcludeLastWord( text, localename )

textA string containing words separated by whitespace.
localenameOptional. The locale to use for the break semantics. Defaults to ''
Return:ExcludeLastWord returns a STRING or UNICODE value, as appropriate.

The ExcludeLastWord function returns the text string with the last word removed.

Words are separated by one or more whitespace characters. For the Unicode version, words are marked by the Unicode break semantics.

Whitespace after the last word is also removed.

Example:

A := STD.Str.ExcludeLastWord('The quick brown fox');
 //A contains 'The quick brown'