Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() t.Text = "a b c a d e a f g a h i" Dim ruleA = t.FromTo("a", "[A]") '// Only find and transform the first 3 occurrences of 'a'. ruleA.StopAfter = 3 Console.WriteLine(t.Transform()) End Sub End Module