I have a string which contains the following output
login;windows
db;sql
audit;failure
how do I check if this string contains the word "audit;failure"?
I have use the following code but was not successful:
currLine = sr.ReadToEnd();
string[] splited = Regex.Split(currLine, "~~~~~~~~~~~~~~");
case1 = splited[0];
string case1 = "";
string pattern1 = "audit;failure";
if (Regex.IsMatch(case1, pattern1)){
console.writeline("success"!);
}
I must search through the variable case1 and not the string currLine
thaks in advance! :D