title: regExp for matching directories
body: <p>I have a somewhat complex directory structure for NetCDF files I want to create a THREDDS catalog for.</p>
  
  <pre><code>/data/buoy/A0121/realtime/A0121.met.realtime.nc
                           /A0121.waves.realtime.nc
                           etc.
  /data/buoy/A0122/realtime/A0122.met.realtime.nc
                           /A0122.sbe37.realtime.nc
                           etc.
  /data/buoy/B0122/realtime/B0122.met.realtime.nc
                           /B0122.sbe37.realtime.nc
  etc.
  </code></pre>
  
  <p>But I have found that the regExp attribute in both datasetScan and aggregation/scan elements does not seem to be able to handle subdirectories using regExp. For example this catalog entry works.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;datasetScan name="All TEST REALTIME" ID="all_test_realtime" path="/All/Realtime"
     location="/data/buoy/B0122" &gt;
    &lt;metadata inherited="true"&gt;
      &lt;serviceName&gt;all&lt;/serviceName&gt;
    &lt;/metadata&gt;
    &lt;filter&gt;
      &lt;include regExp="realtime" atomic="false" collection="true" /&gt;
      &lt;include wildcard="*.nc" /&gt;
      &lt;!-- exclude directory --&gt;
      &lt;exclude wildcard="old" atomic="false" collection="true" /&gt;
    &lt;/filter&gt;
  &lt;/datasetScan&gt;
  </code></pre>
  
  <p>But the following does not. No datasets are found.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;datasetScan name="All TEST REALTIME" ID="all_test_realtime" path="/All/Realtime" 
    location="/data/buoy" &gt;
    &lt;metadata inherited="true"&gt;
      &lt;serviceName&gt;all&lt;/serviceName&gt;
    &lt;/metadata&gt;
    &lt;filter&gt;
      &lt;include regExp="B0122/realtime" atomic="false" collection="true" /&gt;
      &lt;include wildcard="*.nc" /&gt;
      &lt;!-- exclude directory --&gt;
      &lt;exclude wildcard="old" atomic="false" collection="true" /&gt;
    &lt;/filter&gt;
  &lt;/datasetScan&gt;
  </code></pre>
  
  <p>This is a greatly simplified example done just to confirm that regExp does not match subdirectories which is implied at the bottom of this ncML page. 
  <a href="http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/ncml/v2.2/AnnotatedSchema4.html" rel="nofollow">http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/ncml/v2.2/AnnotatedSchema4.html</a></p>
  
  <p>My real goal is to use ncML aggregation via &lt;scan regExp=""&gt;</p>
  
  <p>Should I be using FeatureCollections?  These are pretty simple time series buoy observation files.</p>