2
Answers

How to match whole word from string in c#?

Rohan Ramani

Rohan Ramani

3y
5.2k
1
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)