I have looking for a way to get all ocurrences of a substring within a string with this structure:
input: \'aaaaaaaaaaaa\' pattern: \'aa\'
if you count you should