示例#1
0
        public static CutList GetCutList(string fighterName, string text)
        {
            string exp = RegexHelpers.GetEnduranceDescriptorRegex(fighterName);


            Match   match = Regex.Match(text, exp, RegexOptions.Multiline);
            CutList ret   = new CutList();
            string  temp  = text.Substring(match.Index);

            temp = temp.GetFirstLine();

            string[] splitted = temp.Split(new string[] { ". " }, StringSplitOptions.RemoveEmptyEntries);
            for (int i = 1; i < splitted.Length; i++)
            {
                string cutString = splitted[i];
                Cut    c         = Cut.Parse(cutString);
                ret.Add(c);
            }
            return(ret);
        }