Posts by Waldir Mauricio Junior • 7 points
1 post
-
-1
votes3
answers380
viewsA: Print a string with only numeric values
string input = "There are 4 numbers in this string: 40, 30, and 10."; // Split on one or more non-digit characters. string[] numbers = Regex.Split(input, @"\D+"); foreach (string value in numbers) {…