正则表达式匹配

来源:互联网 发布:域名在哪买都是一样的 编辑:程序博客网 时间:2024/06/09 19:39
        public List<string> MatchStr(string input,string reg){            List<string> lt = new List<string>();            foreach (Match item in Regex.Matches(input,reg))            {                lt.Add(item.Value);            }            return lt;        }

0 0