Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() '// Pattern: Name followed optionally by a Title in parens. t.FromTo("Name: {n} [({title})]", "User: {n} {title:[Title: {title}]}") '// Case 1: Title exists Console.WriteLine(t.Transform("Name: Alice (Manager)")) '// Case 2: Title missing Console.WriteLine(t.Transform("Name: Bob")) '// (The entire "[Title: ...]" block is omitted) End Sub End Module