I'm using the following regular expression to count the occurrence of a word inside a text
string term="framework";
int count = Regex.Matches(r.ResourceDescription.ToLower(), "\b" + term + "\b/gm").Count;
but on the following text (contained in r.ResourceDescription) it returns alway 0:
"Markets play a paramount role in enhancing people's livelihoods and promoting food security. BE tailored a food security framework having markets as one of the elements that should be tackled within the overall food security analysis."