I have an application that requires me to "clean up" dirty "file names.
I was wondering if anyone knows how to handle files named like this:
1.0.1.21 - Confidential ... doc or Accounting.Files.doc
In principle, there is no guarantee that the periods will be in one place for each file name. I was hoping to get back through the drive, look for periods in the file name itself (minus the extension), delete the period, and then add the extension to it.
Does anyone know how best to do this or how to accomplish what I hope to do? As a side note, regEx is REQUIRED for this project.
EDIT: instead of viewing 1.0.1.21 - Confidential ... doc, I would like: 10121 - Confidential.doc
For a different file name instead of Accounting.Files.doc, I would like to see AccountingFiles.doc
source share