62,269
社区成员
发帖
与我相关
我的任务
分享
string strContent = "1111122{#top#}222222333333333{#bottom#}4444444444";
MatchCollection mc = Regex.Matches(strContent, "{[^}]*}");
string[] result = new string[mc.Count];
for (int i = 0; i < result.Length; i++)
{
result[i] = mc[i].Value;
}