How to extract text contained within a pair of parentheses.

ID: 1272

See: Between
				
					using uCalcSoftware;

var uc = new uCalc();
using (var s = new uCalc.String("Data (important) more data")) {
   
   // Get the text between the opening and closing parenthesis
   var content = s.Between("(", ")");

   Console.WriteLine(content);
}
				
			
important
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   {
      uCalc::String s("Data (important) more data");
      s.Owned(); // Causes s to be released when it goes out of scope

      // Get the text between the opening and closing parenthesis
      auto content = s.Between("(", ")");

      cout << content << endl;
   }
}
				
			
important
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Using s As New uCalc.String("Data (important) more data")
         
         '// Get the text between the opening and closing parenthesis
         Dim content = s.Between("(", ")")
         
         Console.WriteLine(content)
      End Using
   End Sub
End Module
				
			
important