Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() '// Note the change in section/div/h2 Dim 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. Dim parentRule = t.Pattern("
{body}
") parentRule.StatementSensitive = false '// Get the local transformer for the
block. Dim 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}

") Dim 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) End Sub End Module