title: LINQ to Object basic codes
body: <p>I'm thinking a list of lists like this.</p>
  
  <pre><code>    var myList = new List&lt;List&lt;string&gt;&gt;();
      myList.Add(new List&lt;string&gt; { "#16", "100%", "Monitor" });
      myList.Add(new List&lt;string&gt; { "#19", "98%", "Guide" });
      myList.Add(new List&lt;string&gt; { "#77", "0%", "Cord" });
  </code></pre>
  
  <p>From codes like this.</p>
  
  <pre><code>    string mySource = @"
      #16
      100%
      Monitor
      #19
      98%
      Guide
      #77
      0%
      Cord
      ";
      var myPattern = @"#(\d+)\r\n(\d+)%\r\n([^\r\n]*)\r\n";
      var myCollection = Regex.Matches(mySource, myPattern, RegexOptions.Singleline)
      .Cast&lt;Match&gt;()
      .Select(x =&gt; Regex.Split(x.Value, "\r\n"))
      .ToList();
  </code></pre>
  
  <p>Obviously in the middle of the "Matches" it has an array.</p>
  
  <p>How can I change it into a list of lists ?</p>
  
  <p>Regards</p>