SequenceAlignment
SequenceAlignment[s1, s2] finds an optimal alignment of sequences of elements in the strings, lists or biomolecular sequences s1 and s2, and yields a list of successive matching and differing sequences.
Examples
SequenceAlignment["kitten", "sitting"]SequenceAlignment[{1, 2, 3, 4, 5}, {1, 2, 4, 5}]Please visit the official Wolfram Language Reference for more details.