我正在使用正则表达式替换如下:
string test = "[abc] Sends the employee mail. [twist] Sends the employee mail.";
test = Regex.Replace(test, "[twist]", "hello");
结果如下:
test = "[abc] Sendhello hellohe employee mahellol. [hellohellohellohellohello] Sendhello hellohe employee mahellol."
它应该只用 hello 替换 [twist] 字符串。
这里出了什么问题。