C# 正则取值

int count = 0;
 

Match mtcTemp = Regex.Matches(xml, @"(?<=<SerialId>)[\d,\s]*(?=</SerialId)")[0];
                    if (null != mtcTemp && mtcTemp.Success)
                    {
                        log.e("DelContact", userNumber, string.Format("通讯录删除统计结果:{0},{1}", mtcTemp.Value, mtcTemp.Value.Split(',').Length));
                        count = mtcTemp.Value.Split(',').Length;
                    }

 

 


posted on 2011-02-24 16:18  伊伦  阅读(570)  评论(0编辑  收藏  举报

导航