using System;
using System.Text.RegularExpressions;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
string s = "c c++ 9 c# java";
Match match = Regex.Match(s, @"\d");
if (match.Success) {
Console.WriteLine(match.Value);
}
}
}
}
/*
run:
9
*/