title: Renaming thousands of text files using regular expression
body: <p>I have over 30K plain text files with different name formats residing on hundreds of directories and sub-directories in my Windows drive H. Following are examples of those files' names:<br><br>
  SQT-DIR-S43-1.txt<br>
  KT-BL-S36-ALL-4.txt<br>
  TMCR-S37-3OP-3W52-1.txt<br>
  TT-BL-S30-SH-1.txt<br></p>
  
  <p>I can rename using a bulk renaming facility. However, <strong>a smart regex</strong> is needed to enable me rename all those files so that the last number after the hyphen to have letter "T" added to it. Hence the previous four examples would be like:</p>
  
  <p>SQT-DIR-S43-T1.txt<br>
  KT-BL-S36-ALL-T4.txt<br>
  TMCR-S37-3OP-3W52-T1.txt<br>
  TT-BL-S30-SH-T1.txt<br></p>
  
  <p><strong>Please note that file extension is not included in the file's name.</strong></p>
  
  <p>Any assistance with this issue is highly appreciated.
  Many thanks in advance.</p>
  
  <p>J.</p>