62,268
社区成员
发帖
与我相关
我的任务
分享
this.TextBox2.Text = Regex.Replace(this.TextBox1.Text, @"begin(.*)end", "mywords", RegexOptions.IgnoreCase);
//修改了下
str = Regex.Replace(str, @"begin[\s\S]*?end", "mywords", RegexOptions.IgnoreCase);
string str="begin......end";
string M_InPut = Regex.Replace(str,@"begin(\w+)end","mywords",RegexOptions.IgnoreCase);