flipping names around

Bulk Rename Utility How-To's

flipping names around

Postby pro-f-sor » Tue Mar 08, 2022 11:51 am

Hi,
I want to bulk change folder names around. These were created as FirstName LastName and in some instances with a middle initial. For the middle initial I can worked out how to do as the simple %1 %2 %3, but this only works when an initial is in the name, but in cases where there is no middle initial, it fails. I am not sure how to do this correctly. I am sure it is a simple solution.

So for an example, we have the following:
Jack Sparrow
Jill A Smith

and want to achieve:
Sparrow Jack
Smith A Jill

Thank you in advance for your assistance :)
How do I do this, please
pro-f-sor
 
Posts: 2
Joined: Tue Mar 08, 2022 11:20 am

Re: flipping names around

Postby Admin » Wed Mar 09, 2022 12:37 am

Hi, is it always bring the last word to the front of the name?
Admin
Site Admin
 
Posts: 2341
Joined: Tue Mar 08, 2005 8:39 pm

Re: flipping names around

Postby pro-f-sor » Wed Mar 09, 2022 12:08 pm

yes
pro-f-sor
 
Posts: 2
Joined: Tue Mar 08, 2022 11:20 am

Re: flipping names around

Postby Admin » Wed Mar 09, 2022 11:52 pm

Try this

RegEx (1)

Enable v2 option

Match: (.*?) (\w+)$
Replace: \2 \1
Admin
Site Admin
 
Posts: 2341
Joined: Tue Mar 08, 2005 8:39 pm


Return to How-To