Check if string contains specific string from list element

I have this string “test123” and this list for example List ={“test”,“testMath”,“123”}
How do i detect if string “test123” contains any string from List with linq or select?
In this case should return True.
Thank you!

first is checking
second is returning the matches

yourListVar.Any(Function (x) strTestStringVar.Contains(x))

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.