using uCalcSoftware; var uc = new uCalc(); var t = new uCalc.Transformer(); string text = "(this and that) "; t.Text = text; // Define two rules var rule1 = t.FromTo("({txt})", "#{txt}#"); var rule2 = t.FromTo("<{txt}>", "${txt}$"); // Transform with both rules active Console.WriteLine(t.Transform()); // Release the first rule rule1.Release(); // Re-run the transformation; only the second rule applies t.Text = text; Console.WriteLine(t.Transform());