#1 : 03/09-14 02:43 Kherida
Posts: 1
|
Hello,
I used to name files, videos, ecc with the date before the name like 14-09-03 Filename. In this case 3rd Sept 2014, using - as a separator between the Year-Month-Day. I want to remove this - from all files (and I have many) and have the date just as 140903. I am very new to this program. Reading the guide the best bet seemed Trim. Trim Characters. I put a - then I click on Start batch, but nothing happens. The file names just remain as they are. Can someone help me? Where am I going wrong? Thank you very much. |
#2 : 03/09-14 08:19 Stefan
Posts: 274
|
Reply to #1:
FROM: 14-09-03 Filename.ext TO: 140903 Filename.ext Trim method http://www.advancedrenamer.com/user_guide/metho d_trim Please read the help: """remove unwanted spaces, dashes, and other unwanted characters from the beginning and end of the filename. """ """FROM THE BEGINNING AND END""".... not from the middle. -- You could use the Remove pattern method http://www.advancedrenamer.com/user_guide/metho d_removepattern Pattern: - - - - FROM: 14-09-03 File-name - Test.ext TO: 140903 File-name - Test.ext If you got to have more hyphens than the date delimiter dashes in the file name, which you want to keep, then you can try the Replace Method http://www.advancedrenamer.com/user_guide/metho d_replace with this regular expression to remove the hyphen from the date only: Replace: (\d)-(\d) With: \1\2 [X]Use regular expressions This will remove hyphens only if located between two digits without any white space around. - - - To make it even more save, to prevent unwanted renaming if there would be still such Digit-Digit pattern anywhere else, for your provided examples you can use this exactly match of your file name patterns: <start>DigitDigit-DigitDigit-DigitDigitDigitDigit TheRest.ext<end> Replace: ^(\d\d)-(\d\d)-(\d\d\d\d)(.+)$ With: \1\2\3\4 [X]Use regular expressions - HTH? |