Product SiteDocumentation Site

5.4.15.32. subWord


>>-subWord(n-+---------+-)-------------------------------------><
             +-,length-+

Returns the substring of the receiving buffer that starts at the nth word and is up to length whitespace-delimited words. The n must be a positive whole number. If you omit length, it defaults to the number of remaining words in the receiving buffer. The returned string never has leading or trailing whitespace characters, but includes all whitespace characters between the selected words.