Hi Guys,
This is regarding composing an regular expression to satisfy the given conditions.
The conditions are:
1. I wanted to return true/false if a particular
word is present in the paragraph.
2. The word can be anywhere (in the beginning, middle, or end)
3. It should return only for whole words with an exception. The word can precede (or) follow by only one special character such as ,.;()[]{} etc
4. Also it is case insensitive search.
In the below code I am searching for a word Positive. I have hardcoded the
string in the regex. Ideally in this case the output should be false, but it is returning true.
So I am not sure how to do this.
Thanks in advance.
Mahendran