title: Python move files from current path to specific folder named like or similar to the file being moved
body: <p>My Folder Structure looks like this:</p>
  <ol>
  <li>Folder 95000</li>
  <li>Folder 95002</li>
  <li>Folder 95009</li>
  <li>AR_95000.pdf</li>
  <li>AR_95002.pdf</li>
  <li>AR_95009.pdf</li>
  <li>BS_95000.pdf</li>
  <li>BS_95002.pdf</li>
  <li>BS_95009.pdf</li>
  </ol>
  <p><em>[Note folder is named 95000, 95002 etc, the actual word 'folder' is not present in folder name, its just mentioned here for representation purpose.]</em></p>
  <hr />
  <p>My goal is, move files &quot;AR_95000.pdf&quot; and &quot;BS_95000.pdf&quot; to folder named - &quot;95000&quot;,
  then &quot;AR_95002.pdf&quot; and &quot;BS_95002.pdf&quot; to folder named - &quot;95002&quot;and so on.</p>
  <p>The PDFs are reports generated by system and thus I can not control the naming of the same.
  Thanks!</p>