using uCalcSoftware; var uc = new uCalc(); // Note the change in section/div/h2 var t = uc.NewTransformer(); // The parent rule will find the
block and make its content available to a local transformer. // StatementSensitive(false) is needed so the multiline content is captured. var parentRule = t.Pattern("
{body}
"); parentRule.StatementSensitive = false; // Get the local transformer for the
block. var section_t = parentRule.LocalTransformer; // These rules will ONLY run on the content inside the
tag. section_t.FromTo("

{text}

", "

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

"); section_t.FromTo("

{text}

", "

SELECTED: {text}

"); var sourceHtml = """

Article One

This is NOT in the section.

Article Two

This one IS inside the section.

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