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
You should add the word delimiter to your regex:
\b(shoes|shirt|pants)\b
In code:
Regex.Match(content, @"\b(shoes|shirt|pants)\b");