.NET MVC ABOUT REMOVING SPECIAL CHARACTERS :    string regExp = "[\\\"]";
               
               
                    string tmp = Regex.Replace(str, regExp," ");
                    string[] strArray = tmp.Split(',');
                  
                   obj.amcid = db.Execute("select MAX(amcid)+1 from sca_amcmaster");
                   foreach (string i in strArray)
                   {
                      // int myInts = int.Parse(i);
                       db.Execute(";EXEC insertitems1 @0,@1", i, obj.invoiceno);
                   }



I HAVE ONE PROBLEM IN THIS CODE.i WANT TO REMOVE ALL SPECIAL CHARACTERS BUT SQUARE BRACKETS NOT REMOVING ,