strindex — search position of a character string in an other string.
ind=strindex(haystack,needle,[flag]) [ind,which]=strindex(haystack,needle,[flag])
A character string. The string where to search occurrences of
needle
A character string or character string vector . The string(s)
to search in haystack
vector of indexes
vector of indexes
string("r" for regular expression)
strindex searches indexes where needle (i) is
found in haystack
for each k it exist a i shuch that
part(haystack,ind(k)+(0:length(needle(i))-1)) is the same
string than needle(i). If which argument is
required it contains these i. When using the third parameters
"r", the needle should be a string of regular expression. And then
strindex is going to match it with haystack according to the regular
express rules.