Rohan Ramani

Rohan Ramani

  • NA
  • 786
  • 138.2k

How to match whole word from string in c#?

May 31 2021 9:36 AM
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. 

Answers (2)