From the example it seems that you are searching the Longest Common Subsequence
In reply to Re: how can i align two two strings by moritz in thread how can i align two two strings by Anonymous Monk