file rename

Post any Bulk Rename Utility support requirements here. Open to all registered users.

file rename

Postby redipo » Mon Apr 26, 2021 3:57 pm

I have several files that have the following structure : <il testimone dello sposo ,Pupi ,Avati ,1997 ,,.avi and I need to rename with 1997,Il testimone dello sposo ,Pupi ,Avati ,1997,,.avi
Pls how can I do that with Bulk Rename?
Thanks
redipo
 
Posts: 4
Joined: Mon Apr 26, 2021 3:52 pm

Re: file rename

Postby therube » Mon Apr 26, 2021 4:49 pm

Not really clear on your example, but see if something like this works:

1:RegEx
Code: Select all
Match:  (.*)(\d\d\d\d)(.*)
Replace:  \2,\1\2\3

Code: Select all
il testimone dello sposo ,Pupi ,Avati ,1997 ,,.avi   
->   1997,il testimone dello sposo ,Pupi ,Avati ,1997 ,,.avi
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: file rename

Postby redipo » Mon Apr 26, 2021 5:42 pm

Yes, fine it works. Thanks a lot.
Pls can you explain me about that "formula"?
Many thanks,

Renato
redipo
 
Posts: 4
Joined: Mon Apr 26, 2021 3:52 pm

Re: file rename

Postby therube » Mon Apr 26, 2021 8:43 pm

(.*) match anything \1 (up to)
(\d\d\d\d) 4-digits \2 (then)
(.*) match everything else that follows \3

then copy that set of digits, \2, followed, by a comma, , , followed by all that was already there \1\2\3.
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: file rename

Postby redipo » Tue Apr 27, 2021 9:15 am

Many thanks but I still do not understand.
Please would you mind to explaine me again but with more details?
Sorry to bother you again.
Thanks you very much.

Renato
redipo
 
Posts: 4
Joined: Mon Apr 26, 2021 3:52 pm


Return to BRU Support


cron