#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto 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
   auto matches = t.Matches();

   // Check if any match was found and get its text
   if (matches.Count() > 0) {
      cout << matches[0].Text() << endl;
   }
}