Hello All,
I want to match whole word in string using c#.
i.e.
There are two strings:
1. These are tasks
2. This is task.
I need to match with "task". If I use string.contains("task") it will retrun both.
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
Piyush PansuriyaRank #454 · 5.5K reputationPosted May 31, 2021, 5:39 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 31, 2021, 5:49 AM EDT