I have condition which is:
System.Text.RegularExpressions.Regex.IsMatch(description.ToString,“mistake|error”,System.Text.RegularExpressions.RegexOptions.IgnoreCase)
what it does is, gives true if description variable contains mistake or error.
What I want to is modifity it to: if description has “mistake” and “error” inside it the output should be true, so:
“I bought a phone, there was a mistake with it gave me an error after executing the application”
I want this to be output as true.
@berkaykor
regex.isMatch will return true when pattern is found
in your case if mistake or error is found in the string (Case insensitive) it will return true
About second question. Here regex101 is helping much: