http://qs321.pair.com?node_id=11118373


in reply to Re^2: Divide a list of string into substrings
in thread Divide a list of string into substrings

If the common substring is in the middle of each string this solution will not find it.

That is the major limitation to this approach. On the other hand, your sample data did not include those and this approach could be a useful preprocessing step to greatly the reduce the volume of input before applying a much-less-efficient brute force search to find those inner common substrings, if they are even a problem.