wordPos >>-wordPos(phrase-+--------+-)--------------------------------->< +-,start-+ Returns the word number of the first word of
[phrase]
found in the
receiving string, or By default the search starts at the first word in the receiving string. You can override this by specifying [start] (which must be positive), the word at which the search is to be started. String class - wordPos method "now is the time"~wordPos("the") -> 3 "now is the time"~wordPos("The") -> 0 "now is the time"~wordPos("is the") -> 2 "now is the time"~wordPos("is the") -> 2 "now is the time"~wordPos("is time ") -> 0 "To be or not to be"~wordPos("be") -> 2 "To be or not to be"~wordPos("be",3) -> 6 |