62,268
社区成员
发帖
与我相关
我的任务
分享private string[] Test(string inpstr, string bstr, string estr)
{
string pstr = @"(?<="+bstr+").*?(?="+estr+")";
MatchCollection mc = Regex.Matchs(inpstr,pstr);//手打,可能有错
string[] rstrs = new string[mc.Count];
for(int i=0;i<mc.Count;i++)
{
rstrs[i] = mc[i].Value;
}
return rstrs;
}string[] arr = System.Text.RegularExpressions.Regex.Split("aa123aa345bb","aa");