using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.FromTo("a [{txt}] b", "a, {txt:{txt}, }b"); Console.WriteLine(t.Transform("a b")); Console.WriteLine(t.Transform("a x b"));