[
  {
    "Id": "614899",
    "ThreadId": "258147",
    "Html": "\r\n<p>I would like to read file names like so: ab*efg*mn.txt&nbsp;&nbsp; and extract only ones that have these characters in the file name.</p>\r\n<p>could this be done in dotnetzip ?</p>\r\n",
    "PostedDate": "2011-05-18T14:23:27.78-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "615446",
    "ThreadId": "258147",
    "Html": "<p>Yes, see the documentation on ZipFile.ExtractSelectedEntries().</p>\n<p>You can also use LINQ to select files to extract.</p>\n<p>Examples on that: <a href=\"http://dotnetzip.codeplex.com/wikipage?title=DotNetZip-Linq-Csharp&amp;referringTitle=Examples\">http://dotnetzip.codeplex.com/wikipage?title=DotNetZip-Linq-Csharp&amp;referringTitle=Examples</a></p>",
    "PostedDate": "2011-05-19T12:18:05.66-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "616973",
    "ThreadId": "258147",
    "Html": "<p>I couldn't find what I was looking for, but I think I got around this, see the code below: (ChannelNamesTemplateDecompose is a string&nbsp;array)</p>\r\n<p><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><font size=\"2\">\r\n<p>ChannelNamesTemplateDecompose = ChannelNamesTemplate[k]-&gt;Split(</p>\r\n</font><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">gcnew</span></span><span style=\"font-size: x-small;\"> </span><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">array</span></span><span style=\"font-size: x-small;\">&lt;</span><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">wchar_t</span></span><span style=\"font-size: x-small;\">&gt; { L</span><span style=\"color: #800000; font-size: x-small;\"><span style=\"color: #800000; font-size: x-small;\">'+'</span></span><span style=\"font-size: x-small;\">}); </span><span style=\"color: #008000; font-size: x-small;\"><span style=\"color: #008000; font-size: x-small;\">// decompose template txt file names</span></span></span></span></span></span><span style=\"font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">for</span></span><span style=\"font-size: x-small;\"> </span><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">each</span></span><span style=\"font-size: x-small;\"> (ZipEntry ^e </span><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">in</span></span><span style=\"font-size: x-small;\"> zip)&nbsp;&nbsp;</span><span style=\"color: #008000; font-size: x-small;\"><span style=\"color: #008000; font-size: x-small;\">// within the same zip file search &amp; extract requested txt file names</span></span></span><span style=\"font-size: x-small;\"> </span></p>\r\n<p>&nbsp;</p>\r\n<p><span style=\"font-size: x-small;\">{</span>\r\n<p><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"><font size=\"2\">\r\n<p>\r\n<p>&nbsp;</p>\r\n</p>\r\n</font><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">for</span></span><span style=\"font-size: x-small;\">(</span><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">int</span></span><span style=\"font-size: x-small;\"> j=0; j &lt; ChannelNamesTemplateDecompose-&gt;Length; ++j) </span><span style=\"color: #008000; font-size: x-small;\"><span style=\"color: #008000; font-size: x-small;\">// for each txt file name parts that matches the file name to extract</span></span></span></span></span></span></span></span></span>\r\n<p><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</span><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">if</span></span><span style=\"font-size: x-small;\"> (e-&gt;FileName-&gt;Contains(ChannelNamesTemplateDecompose[j])) </span></span></p>\r\n<p><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MatchCount++;</span></span></p>\r\n</p>\r\n<p>\r\n<p><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"></span></span><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\"><font size=\"2\" color=\"#0000ff\">\r\n<p>if</p>\r\n</font></span></span></span>\r\n<p><span style=\"font-size: x-small;\"> (ChannelNamesTemplateDecompose-&gt;Length == MatchCount)</span></p>\r\n</p>\r\n</p>\r\n<p>\r\n<p><span style=\"font-size: x-small;\"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // do extraction here on selected files within zip file based on a template file names where file parts are seperated by \"+\"</p>\r\n<p>}</p>\r\n</p>\r\n</p>\r\n<p>&nbsp;<span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">int</span></span><span style=\"font-size: x-small;\"> MatchCount = 0;</span><span style=\"font-size: x-small;\"><span style=\"font-size: x-small;\"> </span></span></p>",
    "PostedDate": "2011-05-23T13:47:12.673-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]