Product SiteDocumentation Site

5.4.15.40. wordPos


>>-wordPos(phrase-+--------+-)---------------------------------><
                  +-,start-+

Returns the word number of the first word of phrase found in the receiving buffer, or 0 if phrase contains no words or if phrase is not found. Multiple whitespace characters between words in either phrase or the receiving buffer are treated as a single blank for the comparison, but, otherwise, the words must match exactly.
By default the search starts at the first word in the receiving buffer. You can override this by specifying start (which must be positive), the word at which the search is to be started.