findstr
Find the locations of a string in another string.
ind=findstr(s1, s2)
Inputs
s1 The string in which the second string is to be found.
s2 The string which is to be found.
Outputs
ind null , if there are no occurrences of s2 in s1 . Otherwise an integer array of indices, each of which corresponds to an index in s1 starting from which the string s2 is located.


Example
>>findstr("123456A123456B123456","12")
          1          8         15