I need to check if a string pattern in the array is contained in a string. I am using the following code but it matches the exact string contained in the array not the pattern so the following will fail. How can I do this?
String[] stringArrayToBlock = { "#", "/", "string1:", "string2" };
String SearchString = "String1:sdfsfsdf";
if (stringArrayToBlock.Contains(SearchString.Trim().ToLower()))
{
//Do work
}