title: Batch rename files to change digit
body: <p>I have a directory containing multiple files.  Each file can have a different prefix and suffix, but all contain a six digit number.  I want to batch rename the files such that one of digits is changed (specifically the second).  </p>
  
  <p>So, for example </p>
  
  <pre><code>*?2????* -&gt; *?5????*
  </code></pre>
  
  <p>The second digit is always the same for all the files, but everything else can be different.  To further complicate matters some files have two six digit numbers.  In case both numbers need to be updated,</p>
  
  <p>e.g.</p>
  
  <pre><code>*?2????*?2????* -&gt; *?5????*?5????*
  </code></pre>
  
  <p>Any pointers?</p>