web.MasterUrl = Regex.Replace(master, "default.master", newMaster, RegexOptions.IgnoreCase);web.Update();