using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.Text = "The price is $19.99 today."; t.Pattern("{@Number}"); // Find the first number t.Find(); // Get the collection of matches var matches = t.Matches; // Check if any match was found and get its text if (matches.Count() > 0) { Console.WriteLine(matches[0].Text); }