I searched and tried different solutions on SE but nothing worked.
I have two lists and would like to remove items from list1
that have a PARTIAL match with items in list2
. I'm new to this.
I tried this but it didn't filter anything out
Select[list1, ! MemberQ[list2, #] &]
I also tried with DeleteCases
and StringMatchQ
but only got various errors. I tried a few solutions from SE but none worked for my specific case.
list1 = {"http://www.domain.com/research", "http://www.domain.com/signup", "tel:5559986644", "mailto:info@domain.com"}
list2 = {"tel:", "mailto:"}
results = {"http://www.domain.com/research", "http://www.domain.com/signup"}
Thank you in advance