private void SetAcceptHeaderAndFileExtension() { var match = Regex.Match(_exportType.GetDescription(), @"AcceptHeader=(?<accept>[\w+\/]+)", RegexOptions.Singleline); _acceptHeader = match.Groups["accept"]?.ToString(); }