string s = @"<Data ss:Type=""String"">{1}</Data>";var txt = Regex.Replace(s, @"ss:type=""String""(?=>\{1\})",@"ss:Type=""Number""", RegexOptions.IgnoreCase);