Renaming only file that do not start with a number?

Advanced Renamer forum
#1 : 22/01-15 11:38
robin
robin
Posts: 1
hello, i would like to know if it is possible to write a script that would rename files that do not start with a number

file 1.example
20150120 file 2.example

would result in

<year created><month created:00>< day created> file 1.example
20150120 file 2.example


the fact that the file that are already in YYYYMMDD format are not altered would make synchronisation better otherwise every time i run the software, the synchronization software considers that all the files have been altered.

thanks for the support, if we manage to get this sorted i will set the software in my server and make a donation.

robin


22/01-15 11:38
#2 : 28/01-15 20:34
Kim Jensen
Kim Jensen
Administrator
Posts: 775
Reply to #1:
Try this solution with the Replace Method:

Text to be replaced: ^(\D)
Replace with: <year created><month created:00>< day created> \1
Use regular expressions: checked

I think it will work.


28/01-15 20:34