Quantcast
Channel: Active questions tagged string-manipulation - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 187

Delete strings: {name, John, John Doe, Doe} to {name, John Doe}

$
0
0

I am not very familiar with coding and I am trying to solve the following:

Input:

{name, John, John Doe, Doe}

Output:

{name, John Doe}

So, it should delete {John, Doe} only if there is a string which contains already both of them.

I would be very grateful for any help! Thank you very much!


Viewing all articles
Browse latest Browse all 187

Trending Articles