Author: user user

C# Regex: to recognize a text from a file contains a string and not contains others

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 […]