字符串:“12(34)56”,替换成"",变成“1256”
string str = "12(34)56 "; Text = System.Text.RegularExpressions.Regex.Replace(str,@"[\(\)] ", " ");
不对吧
@拖鞋王子:
我X 我还以为是去掉括号呢.............
string str = "12(34)56"; string reuslt = Regex.Replace(str, @"\(.*\)", "");
呃 这次是玩真的了.......
@Zery: 3Q