ExcludeNthWord
STD.Str.ExcludeNthWord
STD.Str.ExcludeNthWord
Str.ExcludeNthWord
ExcludeNthWord
( text, n )
text
A string containing words separated by whitespace.
n
A integer containing the ordinal position of the word to
remove.
Return:
ExcludeNthWord returns a STRING value.
The ExcludeNthWord function returns
the text string with the nth word
removed. Words are separated by one or more whitespace characters.
Whitespace after the nth word is also removed (along
with whitespace before, if n=1).
Example:
A := STD.Str.ExcludeNthWord('The quick brown fox',2);
//A contains 'The brown fox'