Contact: aviboots(AT)netvision.net.il
39,872 questions
51,796 answers
573 users
using System; using System.Text.RegularExpressions; class Program { static void Main() { string s = "c 5 c++ 9 c# 89 java 334"; foreach (Match m in Regex.Matches(s, @"\d")) { Console.WriteLine(m); } } } /* run: 5 9 8 9 3 3 4 */