I have text like following example
XXZZXXXZXXZXXXXZZZZZZXVVVVVXZVZ
and also I have two patterns like XX and ZZ
I want to find longest possible string which include above given two patterns and return starting and finishing index of the array.
I try many code sample, but I can't find suitable code
So if you can please help me.....
XXZZXXXZXXZXXXXZZZZZZXVVVVVXZVZ
and also I have two patterns like XX and ZZ
I want to find longest possible string which include above given two patterns and return starting and finishing index of the array.
I try many code sample, but I can't find suitable code
So if you can please help me.....