using uCalcSoftware; var uc = new uCalc(); // This example removes the single-quoted string token. var t = new uCalc.Transformer(); string txt = "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. var 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);