FINDSTR

 

 Find one string within another.

  K = FINDSTR(S1,S2) returns the starting indices of any occurrences

  of the shorter of the two strings in the longer.

  Example:

      s = 'How much wood would a woodchuck chuck?';

      findstr(s,'a')    returns  21

      findstr(s,'wood') returns  [10 23]

      findstr(s,'Wood') returns  []

      findstr(s,' ')    returns  [4 9 14 20 22 32]

  See also STRCMP6T1T1A.