A basic example demonstrating how to ignore a block of text in parentheses, preventing other rules from matching inside it.

ID: 1210

				
					using uCalcSoftware;

var uc = new uCalc();
var t = new uCalc.Transformer();
t.FromTo("word", "WORD"); // Rule to uppercase 'word'
t.SkipOver("({ignore})"); // Rule to ignore content in parentheses

var text = "transform this word, but (not this word)";
Console.WriteLine(t.Transform(text));
				
			
transform this WORD, but (not this word)
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;
   t.FromTo("word", "WORD"); // Rule to uppercase 'word'
   t.SkipOver("({ignore})"); // Rule to ignore content in parentheses

   auto text = "transform this word, but (not this word)";
   cout << t.Transform(text) << endl;
}
				
			
transform this WORD, but (not this word)
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t As New uCalc.Transformer()
      t.FromTo("word", "WORD") '// Rule to uppercase 'word'
      t.SkipOver("({ignore})") '// Rule to ignore content in parentheses
      
      Dim text = "transform this word, but (not this word)"
      Console.WriteLine(t.Transform(text))
   End Sub
End Module
				
			
transform this WORD, but (not this word)