string search = "1311160122251"; string input = "dfsdfsd<在OA中申请Annual Leaveaaaa公司年假 1.0天,申请单号1311160122251><在OA中申请Annual Leave公司年假 1.0天,申请单号1311160122252>"; var temp = Regex.Replace(input, @"<[^>]*" + search + ">", ""); //var temp = Regex.Match(input, @"<.*" + search + ">"); Console.WriteLine(temp); Console.ReadKey();