public static string CleanAttachmentUrls(string content, string oldPath, string newPath) { oldPath = Regex.Escape(oldPath); content = Regex.Replace(content, oldPath, newPath, RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.ExplicitCapture); return content; }