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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   {
      uCalc::String s("Some text <p>This is a paragraph.</p> more text.");
      s.Owned(); // Causes s to be released when it goes out of scope

      // Extract the entire paragraph tag, including its start and end tags.
      auto p_tag = s.BetweenInclusive("<p>", "</p>");

      cout << p_tag << endl;
   }
}