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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();
   t.Text("<p>First paragraph.</p> <div>Content</div>");

   // Pattern to find any simple HTML-like tag
   t.Pattern("<{tag}>{content}</{tag}>");
   t.Find();

   auto matches = t.Matches();
   cout << "Found " << matches.Count() << " tags:" << endl;
   for(auto match : t.Matches()) {
      cout << "- " << match.Text() << endl;
   }
}