110,527
社区成员
发帖
与我相关
我的任务
分享
string str = "【11122】:abc【11122】:abc2【11122】:abc3【11122】:abc5";
string resStr;
Regex regex = new Regex(@"(【\S+】):[^【](\S+))";
MatchCollection matchs;
matchs = regex.Matches(newFirstTr);
foreach (Match match in matchs)
{
resStr= match.Groups[0].ToString();
}
【[\s\S]*?(?=【|$)