110,533
社区成员
发帖
与我相关
我的任务
分享
string str = textBox1.Text.ToLower();
Regex g = new Regex(@"aaa(\w+?)dddd(\w+?)eee");
MatchCollection mc = g.Matches(str);
string strre = string.Empty;
foreach (Match i in mc)
{
strre += i.Groups[1].Value + " " + i.Groups[2].Value;
}
MessageBox.Show(strre);