Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t As New uCalc.Transformer() Dim txt As String = "start one; two end" '// Default behavior is StatementSensitive(true), so {body} stops at the semicolon '// and the 'end' anchor is never found. The transform fails. Dim rule = t.FromTo("start {body} end", "[{body}]") Console.WriteLine($"Sensitive (default): {t.Transform(txt)}") rule.StatementSensitive = false '// With StatementSensitive(false), {body} captures across the semicolon. Console.WriteLine($"Insensitive: {t.Transform(txt)}") End Sub End Module