using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Collections;namespace CSharpTest { class Program { static void Main(string[] args) { string str = "aaaaa <bbb>cccccc <dddddddddd>eeeeeeeeeee"; Console.WriteLine(Regex.Replace(str, @"<[^>]*>", ""));
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;namespace CSharpTest
{
class Program
{ static void Main(string[] args)
{
string str = "aaaaa <bbb>cccccc <dddddddddd>eeeeeeeeeee";
Console.WriteLine(Regex.Replace(str, @"<[^>]*>", ""));
}
}
}