using uCalcSoftware; var uc = new uCalc(); var t = new uCalc.Transformer(); // Note the use of {@String} to capture the quoted text t.FromTo("'['{level}']' Code: {code}, Msg: {@String:message}", "[{level}] - {message} (Code {code})"); var log = "[ERROR] Code: 404, Msg: 'Not Found'"; Console.WriteLine(t.Transform(log));