BT = bt1.Replace(bt3 , "");//删除没有代码(替换功能) BT = bt1.Replace(bt3 , "");//删除没有代码(替换功能) bt3是一个字符串变量. 不能使用正则. 要从bt1中查找字符串bt3 用空内容替换,结果赋给BT