title: Extracting specific files within directory - Windows
body: <p>I am running a loop which needs to access circa 200 files in the directory. </p>
  
  <p>In the folder - the format of the files range as follows: </p>
  
  <ol>
  <li>Excel_YYYYMMDD.txt</li>
  <li>Excel_YYYYMMDD_V2.txt</li>
  <li>Excel_YYYYMMDD_orig.txt</li>
  </ol>
  
  <p>I only need to extract the first one - that is YYYYMMDD.txt, and nothing else</p>
  
  <p>I am using glob.glob to access the directory where i specified my path name as follows:</p>
  
  <pre><code>path = "Z:\T\Al8787\Box\EAST\OT\\ABB files/2019/*[0-9].txt"
  </code></pre>
  
  <p>However the code also extracts the .Excel_YYYYMMDD_orig.txt file too</p>
  
  <p>Appreciate assistance on how to modify code to only extract desired files.</p>