Read Me - Common Public License V1.0 - Copyright Notice(©)

subWord


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

Returns the substring of the receiving string that starts at the [n] th word and is up to [length] blank-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 string. The returned string never has leading or trailing whitespace, but includes all whitespace characters between the selected words.

String class - subWord method

"Now is the  time"~subWord(2,2)    ->    "is the"
"Now is the  time"~subWord(3)      ->    "the  time"
"Now is the  time"~subWord(5)      ->    ""

Read Me - Common Public License V1.0 - Copyright Notice(©)