#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.Text("This is a test. It is simple."); t.Pattern("{@Alpha}"); t.Find(); // The second 'is' starts at character position 19 auto index = t.Matches().IndexOf(19); cout << "The match at character 19 is at index: " << index << endl; cout << "Match content: '" << t.Matches()[index].Text() << "'" << endl; }