I’m trying to filter for errors and exceptions in a text given. I want to show only the rows, which include “Exception/Error/Warning.”
I have the following piece of code, but it returns only 2 chars from the text.
string pattern = @"(?<error>d+)";
Match m = Regex.Match(this.gettext(), pattern, RegexOptions.IgnoreCase);
if (m.Success)
{
Console.WriteLine(m.Value);
}