using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.FromTo("a test", "'{@Self}' is part of: '{@Doc}'"); // Note: .Str(0) here is a shortcut for .Matches().Str(0) Console.WriteLine(t.Transform("This sentence is just a test").Str(0));