using uCalcSoftware; var uc = new uCalc(); // Note the change in section/div/h2 var t = uc.NewTransformer(); var rule = t.Pattern("
{body}
").SetStatementSensitive(false); var section = rule.LocalTransformer; section.FromTo("

{text}

", "

====> {@Eval: UCase(text)} <====

"); section.SkipOver("&{entity};"); var ch = section.FromTo("

{text}

", "

SELECTED: {text}

"); Console.WriteLine($"Has a local transformer: {rule.HasLocalTransformer}"); Console.WriteLine($"rule is a child rule: {rule.IsChildRule}"); Console.WriteLine($"ch is a child rule: {ch.IsChildRule}"); var HtmlText = """

Article One

This is the first article.

Article Two

This is the second article.

Article Three

This one is inside a <section>.

Article Four

This is the fourth article.

"""; t.Text = HtmlText; t.Transform(); Console.WriteLine(t.Text);