C#正则表达式去除中括号[]和小括号{}及其中内容
string pattern = "[aa][bb][cc][dd][ee]{yunjson.com}yunjson.com工具站点"; pattern = Regex.Replace(pattern, @"\[.*\]", "");//过滤[] pattern = Regex.Replace(pattern, @"\{.*\}", "");//过滤{} Response.Write(pattern); //输出:yunjson.com工具站点