The Word function returns the Nth word in a string. Words are separated by spaces.
Note: punctuation characters that are adjacent to the selected word will also be returned.
result = Word( string, n ) |
Examples:
say Word( 'what is your favorite word?', 5 ) -- shows: word? say Word( 'what is your favorite word?', 6 )'_' -- shows: _ say Word( 'let us not quibble over a word or two', 4 ) -- shows: quibble |