/// <summary>
 /// Initializes a new instance of the RegexTextConsumer class
 /// </summary>
 /// <param name="config">the configuration that is used to run this consumer</param>
 /// <param name="source">the TextSource that provides one or multiple lines of text for parsing</param>
 public RegexTextConsumer(RegexTextConsumerConfiguration config, ITextSource source) : base(source, config.RequiredLines, config.VirtualColumns)
 {
     this.config = config;
     regexes.AddRange(from t in config.Regexes
                      select
                      new RegexWrapper
     {
         Regex = new Regex(t.Expression, t.Options),
         End   = t.EndsCurrentItem,
         Start = t.StartsNewItem
     });
 }
 /// <summary>
 /// Initializes a new instance of the RegexTextConsumer class
 /// </summary>
 /// <param name="config">the configuration that is used to run this consumer</param>
 /// <param name="source">the TextSource that provides one or multiple lines of text for parsing</param>
 /// <param name="ignoreWarnedResults">indicates whether to ignore items that would result to a warning. When this value is true, items that lead to warnings are not added to the parsed results</param>
 public RegexTextConsumer(RegexTextConsumerConfiguration config, ITextSource source, bool ignoreWarnedResults) : this(config, source)
 {
     this.ignoreWarnedResults = ignoreWarnedResults;
 }