Finding mulitple occurences of a string within another

I wrote this method just to find multiple occurrences of a substring within another and return indexed-positions that matched in an array.