#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; // Match two newlines in a row and replace with one t.FromTo("{@nl} {@nl}", "{@nl}"); string text = "First\n\nSecond\n\nThird"; cout << t.Transform(text) << endl; }