using System; using System.Linq; using System.Text.RegularExpressions; public class Test { public static void Main() { var s = "Please buy 40 kg of apples for 1350$ each, Please call 8 0 0 4 3 2 1 2 4 3 from 17:00 till 22:00, I would like to bid 50 euro on 20 black and pair of spades"; var res = Regex.Matches(Regex.Replace(s, @"\W+", ""), @"\d+").Cast().Select(m=>m.Value).ToList(); Console.Write(string.Join(", ", res)); } }