Returns the {start end} spans of the longest contiguous common subsequence in two strings or lists
LongestCommonSubsequencePositions[s1, s2]
LongestCommonSubsequencePositions["AABCC", "CBAABA"]
→ {{1, 3}, {3, 5}}LongestCommonSubsequencePositions[{"A", "A", "B", "C", "C"}, {"C", "B", "A", "A", "B", "A"}]
→ {{1, 3}, {3, 5}}LongestCommonSubsequencePositions["This is an example string", "And this is another string"]
→ {{2, 10}, {6, 14}}