Code for pattern matching

sripra

New member
Joined
Apr 22, 2009
Messages
2
Programming Experience
Beginner
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.....
 
Dear Robert_Zenz,

I want code to find longest like XXXXZZZZZZ you given above, how can I do that.

I want to return XXXXZZZZZZ
 
Last edited:
Back
Top