Suppose I have the string "XMIM_XII:MX". I want to find all possible pairs of I and M (by their indexes) between any two X\'s so that would be
XMIM_X =>