You are not logged in.
Pages: 1
I have many documents that follow the file structure FirstNameLastName[number], and I want to change them to LastNameFirstName[number]. How do I accomplish this change so that FirstNameLastName is instead changed to LastNameFirstName?
Offline
Are there any spaces or punctuation marks anywhere in the filenames?
Currently, it looks like capital letters are the only workable delimiters for identifying first and last names.
Can you give some examples?
Offline
For example, let's say I have the following files, now ordered as FirstNameLastName.
JamesSmith
KyleWright
AvaGreen
CharlesRoberts
DamianEdwards
OliviaWilson
I would like to reorder them to LastNameFirstName instead.
SmithJames
etc.
Renamer is fantastic in so many ways, allowing you to remove, add, and change file extensions. However, I haven't figured out if it's possible to change filenames where the only difference is the capital letter in the first and last names, and then reorder them accordingly. When I tested ChatGPT, it suggested something with a rule change in 'Regular Expression', but I couldn't get the proposed solution to work.
Offline
You can use the Regular Expressions rule for this.
Expression: \A([A-Z][a-z]*)([A-Z][a-z]*)
Replace: $2$1
Case-sensitive: YES
This configuration assumes that your names are always in Latin alphabet (A-Z,a-z).
Offline
Works perfectly. Many thanks!
Offline
Pages: 1