using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); // without {@Stop} "end" wouldn't be a match t.FromTo("StopAt {abc} {@Stop} end", "<{abc}>"); t.FromTo("end", "[The End]"); Console.WriteLine(t.Transform("StopAt a b c end"));