I've got a string array that looks like this:
string[] userFile = new string[] { "JohnDoe/23521/1", "JaneDoe/35232/4", ... };
I'm trying the following but this will only return exact matches. I want to be able to return a match if I am searching for "23521".
var stringToCheck = "23521";
if (userFile.Any(s => stringToCheck.Contains(s)))
{
// ...