title: My Regex for File Filter Attribute in NiFi GetFile Processor is Failing
body: <p>I have a list of files to copy to HDFS.</p>
  
  <p>The File names are like:</p>
  
  <ol>
  <li>Sample-11072016 </li>
  <li>Sample-11082016 </li>
  <li>Sample-11062016</li>
  <li>Sample-11062016</li>
  <li>Denodo-09082016</li>
  <li>Denodo-09122016</li>
  <li>Denodo-11082016</li>
  <li>Denodo-11072016</li>
  </ol>
  
  <p>Now I am trying to write a regex which would pick Today's <em>Sample</em> file.
  The digits following the file are dates as in </p>
  
  <blockquote>
    <p>Sample-11082016 is the file of date 11/08/2016</p>
  </blockquote>
  
  <p>The regex I tried is <code>[Sample]-(0-9){8}</code>
  This regex would return all Sample files with of all dates as I am checking for 8 digits.
  Could you please suggest on how to find the file with today's date.
  The problem here is the File name <em>Sample</em> stays constant where as the date keeps changing.
  I have to write a regex so that it would pick the file of today's date only.</p>
  
  <p>I am pretty new to Regex, is it possible to write a regex to check if the date is today's date.</p>
  
  <p>Any suggestions would help.
  NIFI regex Rules are same as Java Regex rules.
  The Regex Expression should be used against the <code>File Filter</code> Attribute of <code>GetFile</code> Processor</p>
  
  <p>Regards,</p>
  
  <p>Sai_PB.</p>