Find substrings within strings of a character vector.
1 2 3 4
character string or character vector
character string (character vector of length 1)
logical (are overlapping substrings allowed)
strfind finds positions of substrings within
match exactly with
s2, and is case sensitive; no regular patterns.
strfindi does not distinguish between lower and upper case.
findstr should only be used as internal function, in Matlab it is
deprecated. It searches for the shorter string within the longer one.
Returns a vector of indices, or a list of such index vectors if
s2 is a character vector of length greater than 1.
1 2 3 4 5