I've a little test program that builds a List of different strings, all of which contain the same formatted number. I also then declare another list which is supposed to contain the specific numbers of each string in the former list.
My plan is to accomplish this by utilizing a regular expression match inside of a lambda function.
Every time I try and do this I get the following error:
List<string> newList = new List<string>(new string[] { "MyName - v 3.7.5.0 ... CPU:",
"MyName - v ... CPU: - 1.5.7.2",
"4.21.66.2 - v ... CPU:",
" - v ... CPU: 31.522.9.0" });
Regex match = new Regex("(\\d+\\.)+\\d");
List<string> otherList = newList.FindAll(str => match.Match(str).Value);
Is there any way I can use lambda functions to accomplish this?

FindAllis expecting a predicate - something that returns true or false.match.Match(str).Valuereturns a string. Perhaps you were looking forConvertAll? (Or just useSelectand LINQ...)