I have to check text files content to see if it contains certain words (ex: hello, hi) but not contains somes (ex: bye, again):
dfadsfdsf hello sir,
good morning, how are you
Regex.IsMatch will return true but
hello sir,
good morning, how are you
hssss bye some
some other
Regex.IsMatch will return false
Please help me with RegEx string.
Words can appear in any order and may not stand alone: bye can be byebye or byeabc.
I am using VS2019.