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
You can use a Linq query to find the number like below:
var nums = Enumerable.Range(1,30).Select(x => x.ToString());
var num = richtextbox1.Text.Split(' ')
.Where(x => numStr.Contains(x))
.Single();
Console.WriteLine("The user number is " + num);