Sir/Madam,
How to find a word from paragraph and how to calculate number of occurances.
With Regards,
Gomathi.P
Find a word from paragraph?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dipal ChoksiRank #199 · 12K reputationPosted Sep 26, 2010, 1:39 PM EDT
using System.Text.RegularExpressions;
...
MatchCollection results = Regex.Matches(s,
return results.Count;
...