I have a list of strings
These strings are made up of strings that will be contained within other strings
And Strings that are Unique in the longest iteration
For example in my list might have the following
4|131
4|201
4|131|2644
4|131|2644|547
4|131|2644|1482
2644
I would like to be able to reduce this down to the longest unique entities
4|201
4|131|2644|547
4|131|2644|1482
2644
I was wondering if there is a standard function in python that can do this process