I have a list consisting of string signatures:
lis1 = {"ab","cd","ef","gh"}
I have another list:
lis2 = {"ab","efij","cde"}
I would like to find elements in lis2
that begin with known signatures in lis1
and then replace them with the corresponding signatures from lis1
to get:
res = {"ab", "ef", "cd"}
Hopefully, this is clearly stated. Please let me know if it isn't.