private RegexOutput InitializeOutput(string dataToParse, Regex expressionToUse)
        {
            var matchData = InitializeRegexOutput.InitializeOutput(expressionToUse);

            GetMatchInfo(dataToParse, matchData);
            return(matchData);
        }
Example #2
0
        private RegexOutput <T> InitializeOutput <T>(T classToFill, IEnumerable <string> dataToParse, Regex expressionToUse)
            where T : new()
        {
            var matchData = InitializeRegexOutput.InitializeOutput(classToFill, expressionToUse);

            foreach (var record in dataToParse)
            {
                GetMatchInfo(record, matchData);
            }
            return(matchData);
        }