using uCalcSoftware;

var uc = new uCalc();
var t = new uCalc.Transformer();

// 1. Parent rule finds content inside parentheses.
var parentRule = t.FromTo("({body})", "({body})");

// 2. Get the local transformer for the parent.
var local_t = parentRule.LocalTransformer;

// 3. Child rule runs only inside the parentheses.
local_t.FromTo("this", "THIS");

var text = "do not find this, but (find this) and not this";
Console.WriteLine(t.Transform(text));