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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();
   t.Text("<h1>Title</h1><p>Text</p>");

   // Pattern to find any tag and its content
   t.Pattern("<{tag}>{content}</{tag}>");
   t.Find();

   auto allMatches = t.Matches();
   cout << "Found " << allMatches.Count() << " matches:" << endl;

   // Loop through each Match object and print its Text
   for(auto match : allMatches) {
      cout << " - " << match.Text() << endl;
   }
}