Contact: aviboots(AT)netvision.net.il
39,923 questions
51,856 answers
573 users
using System; using System.Text.RegularExpressions; class Program { static void Main() { string str = "c# 1 java +746 c++ -2 c 3.14"; string result = Regex.Replace(str, @"[^\d]", ""); Console.Write(result); } } /* run: 17462314 */