I am at a loss as to how to do this. I am printing some information to a richtextbox that will be multiple lines, has words and numbers. I need to search the richtextbox for spe
string pattern = @"[0-9]+";
string input = @"Matt's number for today
is 33 and OK.";
RegexOptions options = RegexOptions.Multiline;
Console.WriteLine("Matt's number is: {0}", Regex.Matches(input, pattern, options)[0].Value);