I want to search for a particulat substring in a string.But I should be able to specify the occurence no. Basically if there are multiple occurences of the same substring in a string then I would like to get both the occurences and not just the first occurence.