Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() '// This example removes the single-quoted string token. Dim t As New uCalc.Transformer() Dim txt As String = "This is a test, 'This is a test'" t.FromTo("{token:1}", "<{@Self}>") Console.WriteLine("--- Before Removing Token ---") '// Initially, 'This is a test' is treated as a single token. Console.WriteLine(t.Transform(txt).Text) '// Now, find and remove the token definition for single-quoted strings. Dim singleQuoteToken = t.Tokens.ByName("_token_string_singlequoted") t.Tokens.Remove(singleQuoteToken) '// Re-run the transform. The text must be set again to be re-tokenized. t.Text = txt Console.WriteLine("") Console.WriteLine("--- After Removing Token ---") '// Now, the single quote is a generic token, as are the words inside it. Console.WriteLine(t.Transform().Text) End Sub End Module