title: Getting rid of multiple periods in a filename using RegEx
body: <p>I have an application that requires me to "clean" "dirty" filenames.  </p>
  
  <p>I was wondering if anybody knew how to handle files that are named like:</p>
  
  <p>1.0.1.21 -- Confidential...doc
  or
  Accounting.Files.doc</p>
  
  <p>Basically there's no guarantee that the periods will be in the same place for every file name.  I was hoping to recurse through a drive, search for periods in the filename itself (minus the extension), remove the period and then append the extension onto it.</p>
  
  <p>Does anybody know either a better way to do this or how do perform what I'm hoping to do?
  As a note, regEx is a REQUIREMENT for this project.  </p>
  
  <p>EDIT:  Instead of seeing 1.0.1.21 -- Confidential...doc, I'd like to see:  10121 -- Confidential.doc
  <br />
  For the other filename, Instead of Accounting.Files.doc, i'd like to see AccountingFiles.doc</p>