using System; using System.Collections.Generic; using System.Text.RegularExpressions; public class Test { public static void Main() { var text = "some words....3,50000 - 11,0 .... text...."; var match = Regex.Match(text, @"(\d+(?:,\d+)?)\s*-\s*(\d+(?:,\d+)*)"); if (match.Success) { Console.WriteLine("{0} - first number", match.Groups[1].Value); Console.WriteLine("{0} - second number", match.Groups[2].Value); } } }