title: Zero pad rename e.g. Image (2).jpg -> Image (002).jpg
body: <p>I need to rename all the images as the title explains in all sub-folders.  I'm thinking of extracting with regex the number inside the parenthesis then renaming it.  Searching around I saw there are tools like <code>rename</code> and <code>mmv</code> but I couldn't get them to pad-rename the jpgs. </p>
  
  <p>I'll appreciate any advise to tackle my problem.  </p>
  
  <p>BTW: is for Windows and I have cygwin bash and perl.</p>
  
  <p><strong>Edit:</strong><br>
  Conclusions after experimenting with all the answers. <br/></p>
  
  <ol>
  <li>Cygwin <code>rename</code> is not good, the one I could get to work doesn't accept regex, but definitely a nice option, e.g. by running a Linux VM and mounting a Win SharedFolder.</li>
  <li>You can build a better <code>rename</code> tool for Cygwin with <a href="http://nylinuxhelp.com/blogs/command-line/cygwin-rename-command-help/" rel="nofollow">this shell script</a> using <code>sed</code>.</li>
  <li>The Windows equivalent for <code>pwd</code> is simply <code>cd</code>.</li>
  <li>Hugmeir posted a promising solution using Perl 5.13+ which are dev releases, but by the time you may be reading this, probably that will be stable.</li>
  <li>The pad_left sub may not be a better alternative to printf syntax, but it works.</li>
  </ol>