In C#, I want to use a regular expression to match any of these words:
C#
string keywords = \"(shoes|shirt|pants)\";
I want to fi
Try
Regex.Match(content, @"\b" + keywords + @"\b", RegexOptions.Singleline | RegexOptions.IgnoreCase)
\b matches on word boundaries. See here for more details.
\b