You are not logged in.
Pages: 1
I have a lot of files of format "Name XXX [0001].jpg" and want to rename them with "0001 - Name XXX.jpg" (the names are different from each others and i want to maintain that) and so on but i can't understand if this could be done with this (very nice) program and what rules to apply.
Any suggestion, please?
Offline
You can do that in two different ways: using RegEx rule, and using PascalScript rule.
I'll explain the first one... Add RegEx rule and set it up like here:
Expression: ([^\[]*) (.*)
Replace: $2 - $1
I have tested it with "Name XXX [0001].jpg" and it produces "[0001] - Name XXX.jpg",
after applying the RegEx rule. So the last thing you need to do is to strip the [] brackets.
And don't forget to skip extension in the RegEx rule
Online
It Works!!!
Thank you very much!!!
Offline
If we would like to do the task in one step RegEx should be like that:
Expression: (.+)\[(.+)\]
Replace: $2 - $1
Or that:
Expression: (.+)\[(\d+)\]
Replace: $2 - $1
if it's important to check if there are only digits in the square brackets.
Regular Expressions are not as hard to understand as you may think. Check ReNamer's manual or nice Regular Expressions tutorial for more info and start to use full power of applications that use them (like ReNamer, Mp3Tag and so on).
Offline
Pages: 1