if I have, for example, this list of keywords:
string keywords = "(shoes|shirt|pants)";
I need to find the whole words in a string. I thought this code would do that:
if (Regex.Match(content, keywords + "\\s+", RegexOptions.Singleline | RegexOptions.IgnoreCase).Success)
but for some reason it will return true for participants, even though I only want the whole word "pants".