title: cmd: replace inner part of a filename (using regular expression mask)
body: <p>I run a small batch-file to rename some txt-file:<br>
  <strong>"C:\backup\t1-dd-dd t2-dd-dd.txt"</strong></p>
  
  <p>in the filename <strong>d</strong> - is a digit (from 0 to 9);<br>
  note: there is space in the filename between t1 and t2 marks (I need it for some reason).</p>
  
  <p>now, I need to replace digits only in the 't1-dd-dd' part of the filename.</p>
  
  <p>with powershell Rename-Item it can be done like this (example):</p>
  
  <pre><code>powershell -command "&amp; { Get-ChildItem с:\backup -filter 't1-* t2-*.txt' | Rename-Item -NewName { $_.Name -replace 't1-\d\d-\d\d','t1-00-99' } }"
  </code></pre>
  
  <p>result would be like this:<br>
  C:\backup\t1-14-26 t2-56-48.txt (old filename)<br>
  C:\backup\t1-00-99 t2-56-48.txt (new filename)</p>
  
  <p>is it possible to do same thing without powershell, just using cmd RENAME command?</p>